aspose file tools*
The moose likes Security and the fly likes HTTPS not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "HTTPS not working" Watch "HTTPS not working" New topic
Author

HTTPS not working

Sudhanshu Mishra
Ranch Hand

Joined: May 28, 2011
Posts: 217

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: 217

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
Ranch Hand

Joined: Jan 26, 2011
Posts: 30

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: 217

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
Ranch Hand

Joined: Jan 26, 2011
Posts: 30

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTPS not working