Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

I want to use https:// over LocalHost tomcat (vista) but failed, I used

 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use https:// over LocalHost tomcat (vista) but failed, I used
keytool -genkey -alias tomcat -keyalg RSA -keystore C:/Users/User/.keystore -validity 365
Is it the correct folder tomcat looks by default(C:\Users\User\)?
C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\bin>
I use port: 443.
https://localhost/webhomecover8/welcome.jsp simple JSP
This implies that https://localhost/ will show tomcat manager? please note this appers "Internet Explorer cannot display the webpage"...in my screen for https://localhost/.
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Is it the correct folder tomcat looks by default(C:\Users\User\)?
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you included the connector in the server.xml?
Something like:



And be aware that sometimes it's necessary to exclude the line


For more information have a look at http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

[edit]
And in your example you forgot to include the port in your URL.
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
same problem, after your suggested two steps done:

http://localhost:8080/webhomecover5/welcome.jsp view success
http://localhost:8080/ view success

problem:
https://localhost:8443/webhomecover5/welcome.jsp view "Internet Explorer cannot display the webpage"

https://localhost:8443/manager/html view "Internet Explorer cannot display the webpage"

in the certificate creation last 2 inputs, are Tomcat password, correct?
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you see that the connector for https port 8443 is started in the console (or catalina log file) ??

When I generate a home made keystore with the keytool, I use this syntax - and this one is working with my Tomcat(s) (all versions):
Replace the <..> with your own values...
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
solved, found:

keystoreFile="C:/User/User/.keystore"
this must be
keystoreFile="C:/Users/User/.keystore"

and also upon creation of cert password start/end must mutch....
 
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!