Details
-
Wish
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
-
None
Description
Although it is possible to enable SSL by specifying a value for the config parameter httpsPort, Tomcat looks by default for
{user.home}/.keystore for the certificate keystore. It is not possible to override this with a system property (a shortcoming of tomcat - it will, for example, default to javax.net.ssl.trustStore for the truststoreFile). A possible workaround is to use our own server.xml, but this makes the whole thing a lot less usable.
I would propose adding a parameter keystore and then in AbstractRunMojo add a line
Connector httpsConnector = container.createConnector( (InetAddress) null, httpsPort, true );
httpsConnector.setAttribute("keystore", keystore); // <- added line
container.addConnector( httpsConnector );
Attachments
Attachments
Issue Links
- is superceded by
-
MTOMCAT-207 Allow truststoreFile in plugin configuration
- Closed