Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Kindly help with this HTTPS issue many thanks

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am hoping that this is the right forum to post this message.

I want to get the HTTPS thing working using Windows NT Server, Tomcat 5.0.28 and Java 1.4.2.

This is what I have done thus far.

1) I went into the server.xml file and uncommented the connector for 8443 port.

2) Then did this as the documentation said in the server.xml file.....when into %JAVA_HOME%\bin\ typed this ...keytool -genkey -alias tomcat -keyalg RSA ,,,

3) Then gave the password "changeit" as the documentation said.

Typing the information that it asked to be entered and the last line said
hit return if the tomcat and the Keytool password is the same... hit retun...


But after doing all this and on starting up the server and running the application when i click the link that leads to https ,



I get the "page cannot be displayed" "the page you are looking for is currently not available." error


Kindly let me know whether what I have done is correct and any help to rectify the problem will be greatly appreciated.

Thanking you all
AS
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The exact same steps you have outlined works on standalone Tomcat 5.0.28 for me
Are you using 8443 in your URL. for e.g https://localhost:8443/ and not 8080 or 80
Thanks
Padma
 
nash avin
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Thanks a lot for the reply greatly appreciated.I understand that the exact same steps works on an XP Home Windows OS, i tried it too.

I want it to work on an Windows NT OS, but it keeps throwing me the "page cannot be found" error, am I missing something when I configure the tomcat for SSL, (https).

It would be great if I could be pointed in the right direction.

Many Thanks

AS
 
Padma Lalwani
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Did you use the same java version on both machines?
The following line has to be in java.security, I think later versions of jdk have this
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
Is Tomcat starting the SSL connector on port 8443?
Also you can try with other browsers like FireFox & Netscape as it could be due to certificate issues with IE, I use Windows 2000 server with IE 6.0
Padma
 
nash avin
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the reply again..

Hi,
Did you use the same java version on both machines?

------- YES - Java 1.4.2 on both machines

The following line has to be in java.security, I think later versions of jdk have this
security.provider.2=com.sun.net.ssl.internal.ssl.Provider

---- I dont quite understanding this particular reply...please explain in detail..

Is Tomcat starting the SSL connector on port 8443?

-------- I will check this and get back to you.

Also you can try with other browsers like FireFox & Netscape as it could be due to certificate issues with IE, I use Windows 2000 server with IE 6.0

------ It gives the error page on all the browsers....

Thanks again

AS
 
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!