tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Tomcat 8.5.16 - can't use Java keystore with multiple entries having different keypass for each entry?
Date Wed, 05 Jul 2017 12:20:17 GMT
On 05/07/17 11:47, Frank Taffelt wrote:
>> I don't think that will work because you can't read the key out of the
>> keystore.
> The keystore API has the getKey(alias,keypass) method that should give you the key. copying
the entry could be:
> KeyStore newks = KeyStore.getInstance("JKS");
> newks.load(null, null);
> newks.setKeyEntry(alias,  ks.getKey(alias, keypass), keypass, ks.getCertificateChain(alias));

Neat. Thanks works nicely.

Fix committed for 9.0.x and 8.5.x

You also get your name in the commit log and the change log.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message