kaikramer / keystore-explorer

KeyStore Explorer is a free GUI replacement for the Java command-line utilities keytool and jarsigner.
https://keystore-explorer.org/
GNU General Public License v3.0
1.7k stars 275 forks source link

Create .p12 file based on key / cert and chain #228

Closed susil closed 4 years ago

susil commented 4 years ago

Is your feature request related to a problem? Please describe. I could not find way to do this unless by keytool command using openssl pkcs12 -export -in abc.cer -inkey abc.key -chain -CAfile abc_ca.cer -name "abc" -out abc.p12

Describe the solution you'd like It will be great to have an option to provide these files and be able to create .p12 file.

Describe alternatives you've considered Above openssl option

Additional context Add any other context or screenshots about the feature request here.

kaikramer commented 4 years ago

Ok, short tutorial:

  1. "File" -> "New", select PKCS#12
  2. Either "Tools" -> "Import Key Pair" or right-click somewhere in the keystore and select "Import Key Pair"
  3. Select the type of "abc.key" (probably either PKCS#8 or OpenSSL)
  4. Unselect "Encrypted Private Key" and browse to abc.key and abc.cer grafik
  5. Right-click on the new key pair entry and select "Edit Certificate Chain" -> "Append Certificate" (browse to abc_ca.cer)