The easy way is to set Tomcat up in Apache and let Apache do the https, though you can set Tomcat up to SSL itself. See the documentation at apache.org for either way. On I, HTTP Server Powered by Apache, or whatever they call it now, has the nifty configuration tool at port 2001. Or you can modify the configuration files in '/www/*'.
I've done it for Tomcat 5.0xxx using Apache on Linux to handle https, but not on i. Only change on Tomcat was to configure an AJP connector in the Catalina service.
Most of this stuff is in the server.xml file and you just have to uncomment it. Here's what it looks like in my Tomcat 7.0 server.xml file.
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of James Lampert
Sent: Friday, January 06, 2012 4:07 PM
To: midrange-l@xxxxxxxxxxxx; Java Programming on and around the iSeries / AS400
Subject: HTTPS-enabling Tomcat 7 on V6 or V7 boxes?
We've recently received a request to enable HTTPS for Tomcat 7. I don't even have a clue where to look for that.
Can anybody point me in the right direction?
--
JHHL
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.