S
S
svd2222017-03-04 11:13:37
OpenSSL
svd222, 2017-03-04 11:13:37

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

2 answer(s)
D
Dimonchik, 2017-03-04
@dimonchik2013

https://www.sslshopper.com/ssl-converter.html

N
Nikolai Korabelnikov, 2017-03-06
@nmk2002

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 question

Ask a Question

731 491 924 answers to any question