Generate Keystore File
- RUN
"C:\Program Files\Java\jdk1.6.0_45\bin\keytool" -genkey -alias tomcat -keyalg RSA -keystore c:\tomcatkeystore
OR RUN
"C:\Program Files\Java\jre7\bin\keytool" -genkey -alias tomcat -keyalg RSA -keystore c:\tomcatkeystore - Input keystore password: changeit
- Input password again: changeit
- Input name: Andy Jackson
- Input organizational unit: HR Department
- Input organization name: Soho Bussiness Ltd
- Input city: Guangzhou
- Input province: Guangdong
- Input country code: CN
- Confirm submission: Y
- Tomcat password: changeit
- Tomcat password again: changeit
- The keystore file will be located at c:\tomcatkeystore
Config tomcat (C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml)
Input the following code to server.xml
<Connector protocol="org.apache.coyote.http11.Http11Protocol"
port="443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="c:\tomcatkeystore"
keystoreType="JKS" keystorePass="changeit" />
Testing
Go to https://localhost with your default browser