I generated a private key using commend:
openssl genrsa -out privKey.pem
Now I want to export this key to file with extension .p12, so I used commend:
openssl pkcs12 -export -inkey privKey.pem -out key.p12 -name "MyPrivKey"
but when I try to run this commend via commend line, I have no results (it's running all time and doesn't stop), and when I open the file .p12 I have message:
Could not display 'key.p12'
Reason: Unrecognized or unsupported data.
Can someone explain me, what I am doing wrong?