<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'>Heh - if you're anything like me, posting to the list seems to be the prerequisite that finally "unlocks" the 'Aha! moment' - regardless of whether anyone replies to the message or not...&nbsp; ;-)<br><br>T<br><hr id="zwchr"><b>From: </b>"Mike Bean" &lt;beandaemon@gmail.com&gt;<br><b>To: </b>"CLUE's mailing list" &lt;clue@cluedenver.org&gt;<br><b>Sent: </b>Wednesday, June 19, 2013 9:27:10 AM<br><b>Subject: </b>[clue] Fwd: tomcat listeners (solved)<br><br><div dir="ltr"><div><div><div><div><br></div>Whew.&nbsp;&nbsp; success at last!&nbsp;&nbsp; As we suspected the issue was with my server.xml connector configuration.&nbsp; Apparently tomcat supports both JSSE and APR connection types and I was doing a connector designed for APR and trying to connect by JSSE.&nbsp;&nbsp; (DOH!)<br>
<br></div>It should've been more like <br><br>&lt;Connector port="443" maxHttpHeaderSize="8192"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxThreads="150" minSpareThreads="25" maxSpareThreads="76"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enableLookups="false" disableUploadTimeout="true"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acceptCount="100" connectionTimeout="20000"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scheme="https"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; secure="true"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; clientAuth="false"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sslProtocol="TLS"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SSLEnabled="true"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keystorePass="XXXXXXX"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; keystoreFile="/openssl-1.0.0d_rhel6/ssl/certs/.keystore" /&gt;<br>
<br></div>Apologies for troubling the list!<br><br></div>Mike Bean<br><div><div><div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mike Bean</b> <span dir="ltr">&lt;<a href="mailto:beandaemon@gmail.com" target="_blank">beandaemon@gmail.com</a>&gt;</span><br>
Date: Wed, Jun 19, 2013 at 8:37 AM<br>Subject: tomcat listeners<br>To: CLUE's mailing list &lt;<a href="mailto:clue@cluedenver.org" target="_blank">clue@cluedenver.org</a>&gt;<br><br><br><div dir="ltr"><div><div><div>OK, I've been staring at this for a while now, it's going to make me crazy if I don't ask for advice.&nbsp; I've been following the steps at: <a href="http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html" target="_blank">http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html</a><br>

<br></div>We're trying to get tomcat to listen for SSL connections: and I've got tomcat working and serving pages on localhost:8080, and SSL accepting connections on 8080<br>via: openssl s_client -connect localhost:8080 -ssl3<br>

<br></div>Where the whole thing just kind of falls apart is that all the reading I've been doing suggests that once you have tomcat and SSL going, it's just a matter of configuring the tomcat server.xml to add a listener on the correct port<br>

<br>&lt;Connector port="8443" maxHttpHeaderSize="8192"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxThreads="150" minSpareThreads="25" maxSpareThreads="75"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enableLookups="false" disableUploadTimeout="true"<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acceptCount="100" scheme="https" secure="true"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SSLEngine="on"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SSLCertificateFile="/openssl-1.0.0d_rhel6/ssl/certs/myca.crt"<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SSLCertificateKeyFile="/openssl-1.0.0d_rhel6/ssl/private/localhost.key" /&gt;<br><br><br></div><div>When the service is running, there should be a listener on the port:<br><br>[root@XXXXXXXXXXX conf]# lsof -iTCP:8080<br>

COMMAND&nbsp;&nbsp; PID USER&nbsp;&nbsp; FD&nbsp;&nbsp; TYPE DEVICE SIZE/OFF NODE NAME<br>jsvc&nbsp;&nbsp;&nbsp; 15886 root&nbsp;&nbsp; 41u&nbsp; IPv6 492302&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0t0&nbsp; TCP *:webcache (LISTEN)<br><br></div><div>But I'm coming up dry every time:<br><br>[root@XXXXXXXXX conf]# lsof -iTCP:8443<br>

[root@XXXXXXXXX conf]#<br><br></div><div>The only errors I have in the tomcat log are of no use, they're on a different port. <br></div><div>I'm running on RHEL6.3<br></div><div><br></div><div>Everybody I talk to seems to think tomcat is the easiest thing in the world, but I'll be damned if I'm not seeing it.&nbsp; Advice is appreciated.<span class=""><font color="#888888"><br>

<br></font></span></div><span class=""><font color="#888888"><div>Mike Bean<br></div></font></span></div>
</div><br></div></div></div></div></div>
<br>_______________________________________________<br>clue mailing list: clue@cluedenver.org<br>For information, account preferences, or to unsubscribe see:<br>http://cluedenver.org/mailman/listinfo/clue</div></body></html>