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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to