Chilkat2-Python
Chilkat2-Python
Transition from Email.FindIssuer to Cert.GetIssuer
Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.Chilkat Chilkat2-Python Downloads
import sys
import chilkat2
success = False
email = chilkat2.Email()
cert = chilkat2.Cert()
# ...
# ...
# ------------------------------------------------------------------------
# The FindIssuer method is deprecated:
# certObj is a CkCert
certObj = email.FindIssuer(cert)
if (email.LastMethodSuccess == False):
print(email.LastErrorText)
sys.exit()
# ...
# ...
# ------------------------------------------------------------------------
# Do the equivalent using Cert.GetIssuer.
# Your application creates a new, empty Cert object which is passed
# in the last argument and filled upon success.
issuerCert = chilkat2.Cert()
success = cert.GetIssuer(issuerCert)
if (success == False):
print(email.LastErrorText)
sys.exit()