Apache

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • HTTPS connection using Axis2

    1 answers - 1182 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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 :
    2007 13:29:14 executeWithRetry
    INF: I/ exception (org.apache.axis2.AxisFault) caught when processing request: PKIX path building failed: unable to find valid certification path to requested target; nested exception is:
    PKIX path building failed: unable to find valid certification path to requested target
    2 2007 13:29:14 executeWithRetry
    INF: 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: axis-user-unsubscribe (AT) ws (DOT) apache.org
    For additional commands, e-mail: axis-user-help (AT) ws (DOT) apache.org
  • No.1 | | 2085 bytes | |

    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("", "TrustStore");

    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

    2/2/07, Coursimault, Jean-Marc <Jean-Marc.Coursimault (AT) xrce (DOT) xerox.comwrote:
    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 :

    2007 13:29:14 executeWithRetry
    INF: I/ exception (org.apache.axis2.AxisFault) caught when processing request: PKIX path building failed: unable to find valid certification path to requested target; nested exception is:
    PKIX path building failed: unable to find valid certification path to requested target
    2 2007 13:29:14 executeWithRetry
    INF: 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: axis-user-unsubscribe (AT) ws (DOT) apache.org
    For additional commands, e-mail: axis-user-help (AT) ws (DOT) apache.org
    --

Re: HTTPS connection using Axis2


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 1 =
QUESTION ON "Apache"

EMSDN.COM