Problem with web services via HTTPS
We have a project with a client in which our system has to consume web services provided by their system via HTTPS. Their WSDL file is not exposed via URL, so we generated the stubs based on a local WSDL file given by them using wsimport command. We wrote a client to test the connection on a local PC (Windows, Sun AppServer) and we are able to invoke the web service successfully via https. The cert provided by them is imported into the Sun AppServers’s trust store. When the same set of Stubs and the same cert are deployed to the development server (Unix, Sub AppServer), we keep getting the following exception:
com.sun.xml.ws.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
To ensure that the cert was installed correctly on the dev server, we included some codes using SSLSocket and managed to get a successful SSL handshake to their server. This set of codes is put into the block of codes which invokes the connection via WS Stubs.
Any help is appreciated. Thanks