Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-56

Allow path to SSL certificate keystore to be specified in plugin configuration

    XMLWordPrintableJSON

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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dbevacqua Dominic Bevacqua
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: