Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use SSL with maven cargo tomcat plugin

I see this post for configuring SSL with Maven Jetty Plugin.

HowTo use https / ssl with Maven/Mortbay Jetty Plugin?

Can someone pls tell me how to do it with cargo plugin for tomcat 7?

like image 716
user1429007 Avatar asked Feb 15 '13 23:02

user1429007


1 Answers

By adding these parameters in cargo 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 are following the general Tomcat SSL configuration instructions at http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html, set your keyAlias to be "tomcat". If you omit the cargo.tomcat.connector.keyAlias property, your key should have the alias "mykey" in your keystore.

like image 111
user1429007 Avatar answered Sep 30 '22 10:09

user1429007