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?