SSL certificate parsing?

Taras Ivashchenko naplanetu at gmail.com
Sun Jan 4 22:30:15 CET 2009


Hello, list!

I use pyopenssl [0] for checking SSL certificates.
And one of such checks is if given certificate is self-signed.
I can do it using values of X509v3 extensions: the subject key identifier and
the authority key id:
X509v3 Subject Key Identifier:
0E:D4:AA:B1:09:91:7C:36:60:EA:56:4E:9C:57:00:AF:9C:4D:02:00
X509v3 Authority Key Identifier:
keyid:0E:D4:AA:B1:09:91:7C:36:60:EA:56:4E:9C:57:00:AF:9C:4D:02:00

I read documentation of pyOpenSSL but I didn't find way how to grub
this information
from certificate using, for example, methods of X509 object.

May be there is another way to parse SSL certificates?
I will be glad to get ever text version of given SSL certificate :)

[0] http://pyopenssl.sourceforge.net/

P.S. I already wrote to  pyopenssl mailing list, but there is now
answer there :(

Тарас Иващенко (Taras Ivashchenko)
--
"Software is like sex: it's better when it's free.", - Linus Torvalds.


More information about the Python-list mailing list