Creating and using SSL Certificate

时间:2015-05-04 19:28:32

标签: java tomcat ssl certificate server

I have java web server with Servlets.

I want to install Versign Free Cert to my server.

I read a lot of documents on Google which didnt give me a starting point.

I dont really know if its correct to my kind of server .

Details: Amazon Server Apache Tomcat Server platform.

Server is operational.

Questions: 1.Main question how to create and install SSL to Tomcat Server.. 2.How can I debug with this SSL Certificate on my local testing server? (if possible at all)

Any links will be great.

I simply need a starting point.

1 个答案:

答案 0 :(得分:1)

One lead would be to look into https connector port 443 in server.xml for tomcat.

https://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html#Edit_the_Tomcat_Configuration_File

Tomcat site provides the following attibutes in its website.

<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector
           protocol="org.apache.coyote.http11.Http11Protocol"
           port="8443" maxThreads="200"
           scheme="https" secure="true" SSLEnabled="true"
           keystoreFile="${user.home}/.keystore" keystorePass="changeit"
           clientAuth="false" sslProtocol="TLS"/>

This can be customized to

<Connector port="443" scheme="https" maxThreads="200" secure="true" SSLEnabled="true" clientAuth="false" sslProtocol="TLS" keyAlias="server" keystoreFile="/path/to/keystorefile" keystorePass="keystorepassword" />

P.S. : I haven't verified it just a lead