Why can't I convert .pem to .p12 file without splitting it?

15 Views Asked by At

I was looking for a simple way to convert .pem file that has both certificate and private key to p12. I wanted this command to work:

openssl pkcs12 -export -out certificate.p12 -in certificate.pem

but it hangs. Every other example shows that -inkey parameter is expected, but the key is already inside .pem file. Is it because developers didn't bother to handle this case, or do I do something wrong?

0

There are 0 best solutions below