• 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
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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....
 
reply
    Bookmark Topic Watch Topic
  • New Topic