Monday, July 29, 2013

Apache tomcat self-signed certificate using java keytool

1.  open terminal and type below
   keytool -genkey -alias tomcat -keyalg RSA -keystore <filename>
 2. key in the parameter

3. configuring tomcat 
    
    
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               keystoreFile="<filename>"
               keystorePass="<password>"
               clientAuth="false" sslProtocol="TLS" />