tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
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.

http://svn.apache.org/viewvc?rev=1800867&view=rev
http://svn.apache.org/viewvc?rev=1800868&view=rev

Thanks,

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message