File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Web service with SSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Web service with SSL" Watch "Web service with SSL" New topic

Web service with SSL

wanderer wanderer

Joined: Jul 21, 2005
Posts: 2
Hi all,

I have a Axis web service deployed on WebSphere 5 and now I want to connect to that web service though SSL. I read the documentation from IBM but could not figure out the way to enable SSL for my web service. Should I enable SSL for both IBM HTTP Server and WebSphere Aplication Server? WebSphere should have a default SSL configuration right? Anyone in this forum could help me please.

emm raha
Ranch Hand

Joined: Mar 18, 2003
Posts: 57
To enable HTTPS for a port in WAS, use the admin console to navigate to:

Servers --> Application Servers --> [yourserver] --> Web Container --> HTTP transports --> SSL enabled = true

To enable HTTPS for IBM HTTP Server, you'll need to specify your SSL certificate. They have a tool for creating default certificates, try googling for more information on that. However, your client may complain that the certificate is "from an unknown authority".
wanderer wanderer

Joined: Jul 21, 2005
Posts: 2
Thanks for your answer.

I looked at the WS Administrator Console and found that there are two ports defined for my application server already -- 9085 for HTTP and 9444 for HTTPS. You are right. I saw the "Enable SSL" check box is selected in the second port.

After configuring a keystore file for IBM HTTP Server and enabling SSL for the first port, I could connect to <a href="https://<my_server_name rel="nofollow">:9085/<my_web_service_url>" target="_blank">https://<my_server_name>:9085/<my_web_service_url>

However, my problem is that I cannot connect to <a href="https://<my_server_name rel="nofollow">:9444/<my_web_service_url>." target="_blank">https://<my_server_name>:9444/<my_web_service_url>. WS logs an error message saying "Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The host <my_server_name> on port 9444 has not been defined"

Could you pls tell me why the default SSL port does not work?
I agree. Here's the link:
subject: Web service with SSL
jQuery in Action, 3rd edition