¿I can make a PFX
certificate from cer
, csr
and key
files?
Actually I have this files
The -in should be .cer file and the -certfile should be .cabundle.pem, you don't need the csr request once it have been signed by root/intermediate CA. So the correct syntax is:
openssl pkcs12 -export -out ceti.pfx -inkey private.key -in signed.cer -certfile cabundle.pem
to bundle the root/intermediate pem files run something like:
cat root.crt intermediateca.crt subordinateca.crt > cabundle.pem
This command helped me:
openssl pkcs12 -export -out user.pfx -inkey user.key -in user.cer -certfile rootca.crt
the responses above returned an error "Unable to load certificates".
Edit: Command has been fixed. Be sure your ceti.cer is PEM encoded
You could use the command :
openssl pkcs12 -export -out ceti.pfx -inkey ceti.key -in ceti.cer
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.