Could someone share a working SSL connector snippet for Tomcat?
I am running Lucee 4.5.1.023 (Viviotech installer) on a Windows 2012 R2 machine, using Tomcat 8 as stand-alone webserver, so the HTTP connector looks like this:
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
I have tried a gazillion different versions of SSL connectors without success, e.g.
<Connector port="443" maxHttpHeaderSize="8192" maxThreads="150"
minSpareThreads="25" maxSpareThreads="75" enableLookups="false"
disableUploadTimeout="true" acceptCount="100" scheme="https"
secure="true" clientAuth="false" sslProtocol="TLS" keyAlias="server"
keystoreFile="d:/lucee/tomcat/cert.key"
keypass="xxx" redirectPort="8443" />
or
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keyAlias="server" keystoreFile="D:\lucee\tomcat\cert.key" keystorePass="xxx" redirectPort="8443" />
or
<Connector port="443" scheme="https" secure="true" SSLEnabled="true"
SSLCertificateFile="d:/lucee/tomcat/cert.crt"
SSLCertificateKeyFile="d:/lucee/tomcat/cert.key"
SSLPassword="xxx"
SSLCertificateChainFile="d:/lucee/tomcat/ca.crt"
keyAlias="server" SSLProtocol="TLSv1" redirectPort="8443" />
I created the keystore file using keytool and imported both the existing crt file (assigning the alias "server" to the certificate) and the CA file of the company issuing the certificate.
However, the best result I can produce when trying to access the site is an error message in the browser complaining about a timeout error or a cipher protocol error.
I've also been wondering whether the connector should be set up for port 8443 instead and the connector for port 443 should simply redirect to port 8443...?
Any hints?
rgds
Lutz