Answer the question
In order to leave comments, you need to log in
How to convert pfx to pkcs7?
There is data: certificate, private key, add. certificate, all this is in the .pfx file. It is
necessary to sign some data using the php function openssl_pkcs7_sign php.net/manual/ru/function.openssl-pkcs7-sign.php The 3rd and 4th parameters are the certificate and the private key.
The question is how to convert a .pfx file to pkcs7 (the output should be a pair - a certificate and a private key).
Answer the question
In order to leave comments, you need to log in
openssl pkcs12 -in filename.pfx -out filename.pem -nodes
Inside will be both a certificate and a private key in pem format.
Separately, the certificate can be extracted by adding -nokeys to the command.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question