Hi Guys,
I'm trying to get an encryption for my
Tomcat 6 running, but up till now I fail miserably. I tried to follow this two Tutorials (
http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/) and (
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html) but I always get the ssl_error_rx_record_too_long error in the end. Numberous forum post suggest to edit the <VirtualHost *:443> tag, but gues what, Tomcat has none, only Apache has.
The interessting parts of the server.xml look like this:
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Connector protocol="org.apache.coyote.http11.Http11AprProtocol" port="8443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="../webapps/test.bin"
keystorePass="****" />
The commad which I used for generating the certificate was:
keytool -genkey -alias tomcat -keyalg RSA (I tried it with and without the option -selfcert)
Has someone an idea what could be wrong?
Greetings Ole