简体   繁体   中英

SSL on Tomcat 6.0

I've been trying all day to set Tomcat 6.0 up for SSL. I know it shouldn't be that hard. I've followed the Tomcat documentation in creating my own Certificate, configuring the connectors in the server.xml file.

When I go to https://localhost:8443 , (8443 is the port I defined in the connector) my certificate does not render on the screen, and my browser tells me that it was unable to make a secure connection to the server and that my client may not have the certificate.

My question is, why isn't my certificate rendering for the user to say "Trust" or "Not"?

There's a full documentation on SSL Howto for Tomcat 6. I don't know how far you've gone to setting up your SSL for me to help you.

Make sure that in server.xml in APACHE_HOME/conf has both Connector for port 8080 and 8443 enabled.

Do you happen to have a tcnative-1.dll file in apache-tomcat-6.xxx\\bin\\ folder?

If so, it will not work with your current <Connector/> configuration. Remove the file or rename the extension and restart the tomcat server again.

This is stated in "Edit the Tomcat Configuration File" section of http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

I ended up figuring it out.

The issue was regarding to my protocol variable in my Connector:

This is what I had: protocol="HTTP/1.1"

Now I have this: protocol="org.apache.coyote.http11.Http11Protocol"

The only issue now is that chrome or IE won't run the site as HTTPS because i signed the certificate myself and am not a CA.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM