1
bxb100 2016-12-21 09:28:01 +08:00 via Android
好像自带库里有,没用过,我也不清楚,帮
|
2
way2exp 2016-12-21 09:35:05 +08:00
|
3
vvoody 2016-12-21 09:35:07 +08:00
PyOpenSSL
OpenSSL.SSL.Connection() get_peer_certificate() get_peer_cert_chain() |
4
BOYPT 2016-12-21 10:16:01 +08:00 1
import os
os.system("openssl x509 -text -noout -in cert.crt") |
9
master13 OP 好,自问自答一波
使用 pyOpenSSL: OpenSSL.crypto.load_certificate(type, buffer) get_subject() get_issuer() |