Chilkat2-Python
Chilkat2-Python
Example: Crypt2.GetSignatureSigningTimeStr method
Demonstrates how to call the GetSignatureSigningTimeStr method.Chilkat Chilkat2-Python Downloads
import sys
import chilkat2
success = False
crypt = chilkat2.Crypt2()
success = crypt.VerifyP7M("qa_data/cades/CAdES-T/Signature-C-T-1.p7m","qa_output/out.dat")
if (success == False):
print(crypt.LastErrorText)
sys.exit()
numSigners = crypt.NumSignerCerts
print("Num Signers = " + str(numSigners))
i = 0
while i < numSigners :
if (crypt.HasSignatureSigningTime(i) == True):
print(str(i + 1) + ": " + crypt.GetSignatureSigningTimeStr(i))
else:
print(str(i + 1) + ": has no signing time.")
i = i + 1
# Sample output:
# Num Signers = 1
# 1: Sun, 03 Dec 2013 06:57:41 GMT