I am having problems setting up my Tomcat with SSL. I would really appreciate some help with it. I am using Tomcat 6 on Windows 7. Below are the steps I have taken so far:
1 - Generated a .keystore file.
2 - In server.xml file I uncommented the SSL connector and configured it as follows:
When I startup Tomcat I see three errors in the log. They are:
SEVERE: Error initializing endpoint
java.lang.Exception: No Certificate file specified or invalid file format
at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method)
SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed:  Only one usage of each socket address (protocol/network address/port) is normally permitted.
SEVERE: Failed to start connector [Connector[HTTP/1.1-8443]]
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.lang.Exception: Socket bind failed:  Only one usage of each socket address (protocol/network address/port) is normally permitted.
I think if i fix the first error I will be in business. However, I have been rooting around for a few hours searching for solutions and trying different things but with no success. I would greatly appreciate your help.
When you get a "socket in use" error, either some other app is already listening on that socket ("There Can Be Only One!"), you didn't fully shut down Tomcat previously, or you attempted 2 different services to use the same socket; for example, if you had uncommented a Connector definition but someone else had already inserted a Connector definition of their own into that server.xml.
On the keystore, try using the command-line keytool utility to open and list what's in the keystore using the full path. That is: