GeeCON Prague 2014*
The moose likes Web Services and the fly likes How to install an SSL Cert for a JAX-WS Service? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "How to install an SSL Cert for a JAX-WS Service?" Watch "How to install an SSL Cert for a JAX-WS Service?" New topic
Author

How to install an SSL Cert for a JAX-WS Service?

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1073
After getting the the certification zip file back from the provider (GO DADDY), I notice that there are 4 files in the zip!

Huh?

The only resource I have says to point tomcat at the single keystore file via server.xml and also gives instructions on how to modify the client JAX-WS.

I'm assuming that the zip file is not the keystore file, or is it?

So, my question is, since this certificate did not come from a "top-tier" CA, how do I go about getting Tomcat to use it?

This may sound like a Tomcat question, but actually, I need to get my JAX-WS service to use this once Tomcat is happy.

Thanks to all for any help or suggestions.

-- Mike
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
First of all, I assume you will need a SSL connector in Tomcat. This is also where you will install the certificate for the web service.
Good instructions are available at: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
Note that the default SSL connector uses port 8443, which you may want to change to port 443.
Second, you also need to configure the web.xml deployment descriptor of the web service like this:

Let me know if the above does not work for you.
Good luck!
 
GeeCON Prague 2014
 
subject: How to install an SSL Cert for a JAX-WS Service?