问题
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]
来源:https://stackoverflow.com/questions/17583737/how-to-convert-pem-to-p7b-with-python