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
def print_signature_info(derData): """ Print certificates of signature """ PKCS7.from_der(derData).display()
def print_signature_info(derData): """ Print signature certificates to stdout """ PKCS7.from_der(derData).display()
def get_time_stamp_info(derData): return PKCS7.from_der(derData).get_timestamp_info()