Tomcat Server/Client Self-Signed SSL Certificate

后端 未结 4 2102
死守一世寂寞
死守一世寂寞 2020-11-28 01:46

I have an Apache Tomcat 6.x server running with a self-signed SSL certificate. I want the client to present their own certificate to the server so I can authenticate them b

4条回答
  •  一整个雨季
    2020-11-28 02:27

    Create certificate:

    keytool -genkey -alias tomcat -keyalg RSA -keystore /home/bob/mykeystore
    

    Enter all the data for the self signed certificate you need then edit Tomcat's server.xml and specify the keystore properties on the SSL connector, e.g.:

    
    

    or follow the Tomcat docs...

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

提交回复
热议问题