https://issues.apache.org/bugzilla/show_bug.cgi?id=46655
Summary: keystore's password handler
Product: Tomcat 6
Version: 6.0.18
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=23216)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23216)
Connector.java
This patch is useful when you want handle keystore password from external
class.
To do this, I added two additional parameters (in Connector tag of server.xml)
to call external method and get Password String.
- Parameter keystorePassHandler (in form some.package.Class.methodToInvoke)
- Parameter truststorePassHandler (in form some.package.Class.methodToInvoke)
obviously, if not present, keystorePass and truststorePass parameters are
used.
Example:
Using external attached passConsole.jar to enter password from console
add attribute to Connector tag of server.xml
<Connector
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="C:/keystore/cert.p12"
keystoreType="PKCS12" keystorePass="keypass"
keystorePassHandler="it.urmet.test.EnterPassword.consolePassword"
truststoreFile="C:/keystore/.keystore"
truststorePassHandler="it.urmet.test.EnterPassword.consolePassword"
truststoreType="JKS" truststorePass="trustorepass"
clientAuth="true" sslprotocol="TLS"/>
If new attributes are presents,keystorePass and truststorePass are ignored (can
be omitted).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]