• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTPS not working

 
Sudhanshu Mishra
Ranch Hand
Posts: 236
1
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 144
Fedora Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sudhanshu Mishra
Ranch Hand
Posts: 236
1
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


Just follow this guide and you should be ok.


SSL Guide
 
Sudhanshu Mishra
Ranch Hand
Posts: 236
1
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
Hibernate Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic