RFR 8218888: keytool -genkeypair should not have the -destalias option

Sean Mullan sean.mullan at oracle.com
Wed Feb 13 13:12:35 UTC 2019


Looks good.

--Sean

On 2/12/19 10:31 PM, Weijun Wang wrote:
> The -genkeypair command mistakenly lists -destalias in its option table. 
> Here is the simple patch:
> 
> *diff --git 
> a/src/java.base/share/classes/sun/security/tools/keytool/Main.java 
> b/src/java.base/share/classes/sun/security/tools/keytool/Main.java*
> *--- a/src/java.base/share/classes/sun/security/tools/keytool/Main.java*
> *+++ b/src/java.base/share/classes/sun/security/tools/keytool/Main.java*
> @@ -211,7 +211,7 @@
>               STORETYPE, PROVIDERNAME, ADDPROVIDER, PROVIDERCLASS,
>               PROVIDERPATH, V, PROTECTED),
>           GENKEYPAIR("Generates.a.key.pair",
> -            ALIAS, KEYALG, KEYSIZE, CURVENAME, SIGALG, DESTALIAS, DNAME,
> +            ALIAS, KEYALG, KEYSIZE, CURVENAME, SIGALG, DNAME,
>               STARTDATE, EXT, VALIDITY, KEYPASS, KEYSTORE,
>               STOREPASS, STORETYPE, PROVIDERNAME, ADDPROVIDER,
>               PROVIDERCLASS, PROVIDERPATH, V, PROTECTED),
> 
> Thanks
> Max


More information about the security-dev mailing list