Hi,

The issue seems to be that the certificate used to setup HTTPS
transport in the printer is not issued by a recognized certificate
authority (Their certificates are available in the cacerts keystore
file in the "lib/security/" directory of your JRE).

To avoid this issue by overriding the default configuration of the
JSSE settings to specify your own trust store as follows:

System.setProperty("javax.net.ssl.trustStore","/path/to/your/truststore");
System.setProperty("javax.net.ssl.trustStoreType", "JKS");  //JKS or PKCS12 ?
System.setProperty("javax.net.ssl.trustStorePassword", "passwordOfTrustStore");

Now you should create a keystore in the specified location and should
import the HTTPS certificate of the device in to it as a trusted
certificate.

HTH

Thanks,
Ruchith

On 2/2/07, Coursimault, Jean-Marc <[EMAIL PROTECTED]> wrote:
Hello,

I'm trying to use a Web service that resides on a printer/copier. It uses 
HTTPS. When I connect to the device using a browser, I get the standard dialog 
box asking me whether I want to accept the certificate presented by the printer.

When I try to connect using Axis, I get an exception :

 févr. 2007 13:29:14 org.apache.commons.httpclient.HttpMethodDirector 
executeWithRetry
INFO: I/O exception (org.apache.axis2.AxisFault) caught when processing 
request: sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target; nested exception is:
        com.ctc.wstx.exc.WstxIOException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
2 févr. 2007 13:29:14 org.apache.commons.httpclient.HttpMethodDirector 
executeWithRetry
INFO: Retrying request

... 2 more times.

I just want my app to accept the certificate no matter what : I don't know how 
to download the certificate to the printer (and I don't want to).

I'be searched high and low, to no avail (I'm no java/axis expert, though).
Any hints ?

Thanks
-- Jean-Marc


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
www.ruchith.org
www.wso2.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to