Use SSL with plugin for maven logo tomcat

I see this message to configure SSL using the Maven Jetty Plugin.

How to use https / ssl with the Maven / Mortbay Jetty plugin?

Can someone tell me how to do this with the tomcat 7 freight plugin?

+4
source share
1 answer

By adding these parameters to the plugin configuration tag, I was able to configure SSL.

<cargo.servlet.port>8443</cargo.servlet.port> <cargo.protocol>https</cargo.protocol> <cargo.tomcat.connector.clientAuth>false</cargo.tomcat.connector.clientAuth> <cargo.tomcat.connector.sslProtocol>TLS</cargo.tomcat.connector.sslProtocol> <cargo.tomcat.connector.keystoreFile>path/to/kestorefile</cargo.tomcat.connector.keystoreFile> <cargo.tomcat.connector.keystorePass>password to the keystore</cargo.tomcat.connector.keystorePass> <cargo.tomcat.connector.keyAlias>your_alias</cargo.tomcat.connector.keyAlias> <cargo.tomcat.httpSecure>true</cargo.tomcat.httpSecure> 

If you follow the general Tomcat SSL configuration instructions at http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html , set your Alias โ€‹โ€‹keys to "tomcat". If you omit the cargo.tomcat.connector.keyAlias โ€‹โ€‹property, your key must have an alias of "mykey" in your keystore.

+7
source

All Articles