Tomcat 7 SSL Failed

后端 未结 5 741
既然无缘
既然无缘 2021-02-02 09:57

I use Tomcat 7 and will enable the SSL Connector. Actuall i have edit this solution to the server.xml file:



        
5条回答
  •  别跟我提以往
    2021-02-02 10:10

    There are two ways to implement SSL on TOMCAT

    (APR implementation of SSL and JSSE implementation of SSL)

    The difference is that the JDK is using it's own SSL implementation, while the APR it's using what's installed on the computer, i.e. OpenSSL in most cases.

    First way (jSSE) using java

    1. Creating a Keystore file

      (windows-os) in comand prompet cmd [cd $JAVA_HOME/bin]

      keytool -genkey -alias tomcat -keyalg RSA
      
    2. (Configuring Tomcat's SSL Connectors) in (..\Tomcat 8.0\conf\server.xml)

    Second way (ARP) using openssl

    1. Creating a Keystore file using Java

    2. (Configuring Tomcat's SSL Connectors) in (..\Tomcat 8.0\conf\server.xml)

    
    
    

    Useful URLs:

    http://java.dzone.com/articles/setting-ssl-tomcat-5-minutes

    http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html

提交回复
热议问题