Beispiel #1
0
def print_timestamp_info(derData):
    """
    Print timestamp info
    """
    pkcs7 = PKCS7.from_der(derData)
    signedDate, valid_from, valid_to, signer = pkcs7.get_timestamp_info()
    print "Signature date: %s" % signedDate
    print "Signers certicate valid from: %s, to: %s" % (valid_from, valid_to)
    print "Signers certicate sbject: %s" % signer
Beispiel #2
0
def print_signature_info(derData):
    """
    Print certificates of signature
    """
    PKCS7.from_der(derData).display()
Beispiel #3
0
def print_signature_info(derData):
    """
    Print signature certificates to stdout
    """
    PKCS7.from_der(derData).display()
Beispiel #4
0
def get_time_stamp_info(derData):
    return PKCS7.from_der(derData).get_timestamp_info()