• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with https

 
Jayavardhan Ncbr
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use HTTPS for my jsp page only, other part of application just uses HTTP, but it seems not to work.


the application is working if I use http://localhost:8086/Secu
and also work with https://localhost:8443/Secu.


the following is the part of configuration in web.xml



<security-constraint>
<web-resource-collection>
<web-resource-name>securedpp</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>Confidential</transport-guarantee>
</user-data-constraint>
</security-constraint>

if any body knows the solution Please suggest me its very urgent.

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried "*.jsp" instead of "/*" ?
 
Jayavardhan Ncbr
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i tried with *.jsp also but of no use
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case it would be helpful to know what, exactly, "it seems not to work" and "of no use" mean. What did you do, what did you expect to happen, and what did actually happen?
 
Jayavardhan Ncbr
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i want to access https://localhost:8443/



According to the documentation there are 3 steps

1) Create a keystore using Java
2) Configure Tomcat to use the keystore
3)Restart Tomcat and run https://localhost:8443/

I did all the three steps.


After that i am trying https://localhost:8443/ but when i try this i am getting the error like "Internet Explorer cannot display the web page https://localhost:8443


Please tell me the steps how to acess.

I am using Tomcat 6.

Thanks in advance.




Ulf Dittmer wrote:In that case it would be helpful to know what, exactly, "it seems not to work" and "of no use" mean. What did you do, what did you expect to happen, and what did actually happen?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure where you got those 3 steps from, but there's more to it. The official documentation has an extensive page on SSL that describes all the steps: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic