tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zama Ques <>
Subject Self signed certificate not working for tomcat 6
Date Fri, 28 Nov 2014 08:46:38 GMT

down votefavorite | I am trying to configure self signed certificate for our tomcat server.
For that initially I created the keystore certificate file using keytool .The command I
tried for this iskeytool -genkey -alias example -keyalg RSA -keystore /home/zaman/certs/keystorefile.key
chmod 600 /home/zaman/certs/keystorefile.key
$ ls -l /home/zaman/certs/keystorefile.key
-rw-r--r-- 1 zaman zaman 1329 Nov 27 15:51 /home/ssdg/certs/keystorefile.key

Then uncommneted the SSL connector tag in server.xml to add reference to keystore file
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
           maxThreads="150" scheme="https" secure="true" keystoreFile="/home/zaman/certs/keystorefile.key"
           clientAuth="false" sslProtocol="TLS" />
After this I restarted tomcat server , but cannot access tomcat link (https://localhost:8443) using
https. Nothing is seen in log file .$ netstat -apn | grep 8443
tcp        0      0 :::8443                     :::*                        LISTEN      25759/java
What I am missing to make https work for tomcat using self signed certificate?Please suggest
ThanksZaman |

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message