• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating Self Signed SSL Certificate for Apache.---Isuue with certificate/key  RSS feed

Anjay Kumar
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Creating Self Signed SSL Certificate for Apache.

The below process requires java home setup referencing the java bin directory ( E.g. path = C:\Program Files\Java\jre1.6.0_22\bin

Step 1 - Generate a private key in keystore file: dev2store.keystore


keytool -genkey -alias dev2 -keyalg RSA -validity 365 -keystore d:\certi\dev2store.keystore

Note for first and last name mention application url as: rm-bwise-dev2.nl.eu.abnamro.com

Step 2 - Export the certificate with file name as dev2.cer

keytool -export -alias dev2 -keystore d:\certi\dev2store.keystore -rfc -file d:\certi\dev2.cer
Step 3 - Import the certificate in to the truststore file dev2.keystore


keytool -import -alias dev2 -file d:\certi\dev2.cer -keystore d:\certi\dev2.keystore

Step 4 : Place dev2.keystore into tomcat root directory and restart the apache tomcat. Also make an entry of dev2.keystore
into server.xml

Connector SSLEnabled="true" URIEncoding="UTF-8" acceptCount="100" ciphers="SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" clientAuth="false" connectionTimeout="60000" disableUploadTimeout="true" enableLookups="false" executor="tomcatThreadPool" keystoreFile="dev2.keystore" keystorePass="Welcome2012" maxHttpHeaderSize="16384" maxPostSize="0" port="443" protocol="HTTP/1.1" scheme="https" secure="true" server="BWise" sslProtocol="TLS"/>

PROBLEM: When I run the application on browser, it's displays a blank page with error 401...... Is there something I am missing. Please anyone could help me regarding it
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!