(一)安装pyOpenSSL 1、下载并安装 https://launchpad.net/pyopenssl pyOpenSSL-0.11.winxp32-py2.7.msi 64位pyOpenSSL:附件中 2、导入pyOpenSSL库 >>> import OpenSSL 3.使用方法 http://stackoverflow.com/questions/7279282/extract-the-value-of-a-x-509-certificate-custom-extension-using-pyopenssl http://pyopenssl.source