Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web service with SSL

 
wanderer wanderer
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
 
emm raha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic