| Author |
HTTPS not working
|
Sudhanshu Mishra
Ranch Hand
Joined: May 28, 2011
Posts: 201
|
|
Hi all,
I am trying to set up SSL security for my application and i am using a self signed certificate for testing purpose.
I followed the steps as per this link
Self Signed Certificate
I am using tomcat server.
Now,my problem is that,even after importing the server certificate in my browser,I am unable to access the HTTPS on port 8443,but i can successfully see the tomcat homepage on localhost:8080.
Am i missing any settings?
Please guide me through.
Thanks and Regards.
|
 |
Mike Zal
Ranch Hand
Joined: May 04, 2011
Posts: 144
|
|
I did not check your link, but did you update your Tomcat configuration files to actual listen on port 8443?
Maybe you should follow the Official Tomcat SSL Setup documentation
|
OCJP6, OCWCD5
|
 |
Sudhanshu Mishra
Ranch Hand
Joined: May 28, 2011
Posts: 201
|
|
Hi Mike,
Thanks for the reply.
Yes,I hace configured my server.xml file and uncommented the portion for SSL configuration.I have also added the keystoreFile and keystorePass attributes,but still i am unable to run the link https://localhost:8443.
While making the CSR,do i have to provide CN as localhost,or localhost:8443?Because right now i am using the CN as localhost.
Please reply.
Thanks and regards
|
 |
Kacem Bel
Greenhorn
Joined: Jan 26, 2011
Posts: 27
|
|
Hi,
Just follow this guide and you should be ok.
SSL Guide
|
OCP-JP 6 - OCE-JPAD - OCE-EJBD
|
 |
Sudhanshu Mishra
Ranch Hand
Joined: May 28, 2011
Posts: 201
|
|
Hi Kacem,
Thanks for your post.
I visited the site and performed the steps written there.
Now I have another problem on starting the tomcat server,although the SSL port has been configured successfully(it is displayed as 8443 in the eclipse server overview).
I get following exception stacktrace:
AND
Now,what should be done?
Please help me.
|
 |
Kacem Bel
Greenhorn
Joined: Jan 26, 2011
Posts: 27
|
|
Hi,
Can you provide some informations like the Tomcat version, and the server.xml content that you have in Servers project at eclipse please and where did you put the keystore file?
|
 |
 |
|
|
subject: HTTPS not working
|
|
|