|
From: <gee...@ut...> - 2004-11-03 22:58:44
|
Hi,
I'm trying to use the OpenSSL module in order to get
the subject distinguished name from a certificate:
Is there any change to get this as a string and not as an X509Name object
(I see that there is eg a countryName method, but this doesn't give me the
full DN)
What about a DN with domain components...
Thanks,
Geert
from OpenSSL.crypto import *;
def MyDump():
FileName = "C:\\brol\\sign.crt"
CertFile = open(FileName, "rb")
Cert = CertFile.read()
CertFile.close()
n = load_certificate(FILETYPE_ASN1, Cert)
s = n.get_subject() |