• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

HTTPS not working

 
Ranch Hand
Posts: 238
1
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 144
Oracle Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 238
1
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 30
Hibernate Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


Just follow this guide and you should be ok.


SSL Guide
 
Sudhanshu Mishra
Ranch Hand
Posts: 238
1
Eclipse IDE Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic