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

Add configuration option for key generation algorithms #245

Closed bennypi closed 2 years ago

bennypi commented 3 years ago

I almost always have to change the default options when generating a new key pair. When using RSA, 2048 bits is not enough, when using EC I often use secp or others.

I would prefer a configuration option, for example in the settings/preferences of KSE, to change the default settings for RSA, DSA and EC. This way I could set the key length of RSA and DSA to my preferred length and also select a curve that I use most of the time.

kaikramer commented 3 years ago

Well, what KSE does is to store the last used key type and size. So, if you generate a 4096 bit RSA key, then close KSE, then open it again, RSA with 4096 bit is pre-selected. This mechanism is unfortunately not very clever, because it forgets the RSA key length as soon as you select DSA or EC and vice versa. And the selected curve is not remembered at all.

I'll just fix this in the next release, no extra settings required.

kaikramer commented 2 years ago

Closing tickets in preparation of release 5.5.0