I would like to generate a P12 certificate from a .key and .pem. I'm running this command and get prompted to enter a export password:
pkcs12 -export -inkey private-key.key -in developer_identity.pem -out iphone_dev.p12
I can't enter a password at this point, it seems that the keyboard input is not recognized.
What do I miss? (I'm new to the Command Line tool and openSSL)
Set up keychain access: Click “File” -> “Export Items” and choose “Personal Information Exchange (. p12)” format. Select the location and provide name to export the (. p12) certificate and click “Save” to provide password.
According to that link in the original answer (the same info is in man openssl ), openssl has two parameter for passwords and they are -passin for the input parts and -passout for output files. For the -export command, I used -passin for the password of my key file and -passout to create a new password for my P12 file.
OpenSSL command line app does not display any characters when you are entering your password. Just type it then press enter and you will see that it is working.
You can also use openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out iphone_dev.p12 -password pass:YourPassword
to pass the password YourPassword
from command line. Please take a look at section Pass Phrase Options in OpenSSL manual for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With