aspose file tools*
The moose likes Tomcat and the fly likes Problem with https Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with https" Watch "Problem with https" New topic
Author

Problem with https

Jayavardhan Ncbr
Greenhorn

Joined: Jul 25, 2011
Posts: 9
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
Marshal

Joined: Mar 22, 2005
Posts: 42274
    
  64
Have you tried "*.jsp" instead of "/*" ?


Ping & DNS - my free Android networking tools app
Jayavardhan Ncbr
Greenhorn

Joined: Jul 25, 2011
Posts: 9
Yes i tried with *.jsp also but of no use
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42274
    
  64
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

Joined: Jul 25, 2011
Posts: 9
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
Marshal

Joined: Mar 22, 2005
Posts: 42274
    
  64
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with https