> opalssl x509 -in test.pem -noout -text
in python code,
import OpenSSL.cryptoc = open('test.pem').read()cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, c)raw=str(OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_TEXT, cert), 'utf-8')
print(raw)
沒有留言:
張貼留言