FileKeystoreInstance.getKeyManager() fails when there is more than one
privatekey in the store
----------------------------------------------------------------------------------------------
Key: GERONIMO-2280
URL: http://issues.apache.org/jira/browse/GERONIMO-2280
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: security
Affects Versions: 1.1, 1.1.1
Reporter: Vamsavardhana Reddy
Fix For: 1.1.1, 1.1.2, 1.1.x, 1.2
FileKeystoreInstance.getKeyManager() fails when there is more than one
privatekey in the store.
Scenario 1: The method will throw UnrecoverableKeyException if the all the
private key entries in the keystore do not have the same password (as the entry
of our interest).
Scenario 2: Even if all the private key entries have the same password and the
method returns a KeyManager, there is no control on which enrty will be used.
To overcome this, a temporary keystore (I call it a SubKeystore) can be
generated and initialized with the entry corresponding to the alias and used to
init the KeyManagerFactory.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira