importing p12 file is asking for a password

luv2liv

Diamond Member
Dec 27, 2001
3,497
94
91
i have a cert "origin.pem" and a key "privkey.pem"
when i try to install origin.pem on android, it is asking for the key file. strange i cant select both PEM files at the same time. when i try to select the privkey.pem, it says no certificate to install. so it seems i have to combine the 2 PEM into one.
i found this command and it works: openssl pkcs12 -export -in origin.pem -inkey privkey.pem -out test-combined.p12
during creation, ubuntu asks for a password so i entered "111" for simplicity. next it wants to confirm the pass so i entered "111" again.
when i try to install "test-combined.p12" on android, it asks for password BUT entering "111" does not work
any idea what the pass is???
 
Jul 27, 2020
18,531
12,455
146
I don't understand why public and private key would need to be combined in a single file. Whole point of the key pair is so only YOU have the private key and no one else.