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

Saving keystore file results in a warning of proprietary format when listing entries with keytool on Linux #234

Closed pauLee closed 4 years ago

pauLee commented 4 years ago

Doing a list command for entries of a keystore-file, which is saved with Keystore-Explorer, results in a warning when using keytool on Linux:

Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /opt/xvm/... -destkeystore /opt/xvm/... -deststoretype pkcs12".

Environment

kaikramer commented 4 years ago

That just means that the former default Java keystore formats JKS and JCEKS are not recommended anymore. This is not a KSE specific problem, you'll get the same warning if you create a JKS or JCEKS keystore with keytool.

You can change the keystore type to PKCS#12 in the Tools menu of KSE (i.e. the GUI equivalent of the command in the warning message): grafik

As a side note: While it is true that JKS and JCEKS are not very secure formats for storing keys, they are still fine for storing certificates (as a truststore).

pauLee commented 4 years ago

Thank you for the explanation!

kaikramer commented 4 years ago

I have thought about this a bit more and found something that I should change in KSE: When one creates a new keystore in KSE, JCEKS is the pre-selected keystore type. To reflect the changes in keytool, I'll make PKCS#12 the new default.

Thanks for taking the time to create this ticket!