Re: Tomcat 8.5.16 - can't use Java keystore with multiple entries having different keypass for each entry?

2017-07-05 Thread Mark Thomas
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"); >

RE: Tomcat 8.5.16 - can't use Java keystore with multiple entries having different keypass for each entry?

2017-07-05 Thread Frank Taffelt
> 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.

Re: Tomcat 8.5.16 - can't use Java keystore with multiple entries having different keypass for each entry?

2017-07-05 Thread Mark Thomas
On 04/07/2017 07:32, Frank Taffelt wrote: > Hi Thomas, > >> By far the simplest solution is to have one keystore per private key. > > so maybe this could go into the docs section. Updated. Will be included in the next release (not the one currently being voted on). >> I find the JSSE API tricky