Duplicate :
|
|
Relates :
|
|
Relates :
|
When -storetype is not provided, keytool now uses type probing to load a file-based keystore. However, the real storetype is never remembered and keytool is still using the default storetype ("pkcs12") to validate command and options, and some special pkcs12-only restrictions (For example, keypass and storepass must be same) might be incorrectly enforced on a non-pkcs12 keystore. For example: $ keytool -keystore ks -genkeypair -alias a -dname CN=a -storepass changeit -keypass changeit -storetype jks $ keytool -keystore ks -keypasswd keytool error: java.lang.UnsupportedOperationException: -keypasswd commands not supported if -storetype is PKCS12