permaculture playing cards*
The moose likes Web Services and the fly likes SSL Web Services on Glassfish Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SSL Web Services on Glassfish" Watch "SSL Web Services on Glassfish" New topic
Author

SSL Web Services on Glassfish

Bernhard Haeussermann
Ranch Hand

Joined: Aug 05, 2009
Posts: 38
Hi. I'm having trouble with deploying a web service using SSL on Glassfish v. 2.1.
Normally when I deploy a web service, I export it to a .WAR file in Eclipse. I then deploy this file on a Glassfish server via the admin console.
How do I tell Glassfish to make the web service use SSL, using the security certificate currently configured?
Alternatively, how do I indicate that it should use http-listener-2 (not http-listener-1), which works on port 8181 and is security-enabled (https) by default?

Your insight in this matter would be significantly appreciated!
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Use the web.xml deployment descriptor. Here is an example that shows how to configure SSL for the POST operations to a web service. You probably do not want to require SSL for accessing the WSDL (which is accessed using GET).

Best wishes!
Bernhard Haeussermann
Ranch Hand

Joined: Aug 05, 2009
Posts: 38
Thanks!
 
 
subject: SSL Web Services on Glassfish
 
Similar Threads
Newbie naive questions Regarding glassfish
Using Transport Security (SSL) in Web Service (CalulatorApp)
Using Transport Security (SSL) in Web Service (CalulatorApp)
SSL Clarification
First time with SSL/TLS