how to convert PEM to P7B with python

2019-07-16 06:28发布

问题:

this works perfectly in command-line, I would like to do the same using M2Crypto in Python code.

openssl crl2pkcs7 -nocrl -certfile ra.crt -out ra-ca.p7b -certfile ca.crt.

回答1:

Checkout the below link. This will help you.

[http://www.coderexception.com/CzmubmbbUJQXXJWP/how-can-i-use-python-to-output-a-certificatesonly-pkcs7][1]