Hi all

I have Apache Tomcat/9.0.0.M10 on Windows 10 64bit and want to setup SSL. Am following https://tomcat.apache.org/tomcat-9.0-doc/ssl-howto.html and gone through the steps of creating the keystore with a single self signed cert using:

"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA

Thats fine and confirmed the certificate is in there.

Next I alter the server.xml file as follows and go to restart the Tomcat service:

    <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
This connector uses the NIO implementation with the JSSE engine. When using the JSSE engine, the JSSE configuration attributes must be used.
    -->

<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" keystoreFile="c:\users\khisanth\.keystore" keystorePass="changeit" />
        <SSLHostConfig>
<Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
                         type="RSA" />
        </SSLHostConfig>
    </Connector>

Problem is the service will not restart. If I remove the added comments it will restart fine. I am logged in as administrator. The apache server status page does mention HTTPS.

Any ideas?

thanks

khisanth

Reply via email to