Lines Matching full:x509
47 def GetFingerprintString(x509):
48 """Computes a fingerprint string as output by 'openssl x509 -fingerprint'.
51 x509: A M2Crypto.X509.X509 object.
57 return ':'.join(re.findall(r'..', x509.get_fingerprint('sha1').zfill(40)))
77 x509 = M2Crypto.X509.load_cert_string(pem_cert)
78 content = '%s%sSHA1 Fingerprint=%s\n' % (x509.as_pem(),
79 x509.as_text(),
80 GetFingerprintString(x509))
81 base_name = '%08x' % x509.get_subject().as_hash()