Forum Stats

  • 3,780,755 Users
  • 2,254,431 Discussions
  • 7,879,434 Comments

Discussions

JCS-SX - Fedex API SSL issue

Casey Tan
Casey Tan Member Posts: 10
edited Nov 8, 2016 10:08AM in Java Cloud Service

Hi everyone,

I am running a Java servlet that will call Fedex Tracking API , The Fedex tracking API URL is

private java.lang.String TrackServicePort_address = "https://wsbeta.fedex.com:443/web-services/track";

When the code going to access this link, then it will error, which is

; nested exception is: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

No idea is that has any way able to import Fedex SSL certificate into JCS-SX? or any alternative way to solve this error ?

Hope someone can help on this issue. Thanks alot.

Best Answer

  • Casey Tan
    Casey Tan Member Posts: 10
    edited Oct 31, 2016 7:51PM Accepted Answer

    I have found the solution from

    1. Download SDK from https://docs.oracle.com/cloud/latest/javacs_gs/CSJSU/GUID-B2007CE3-274C-43F9-80CF-E388B5F2C065.htm#CSJSU7165

    2. Download certificate from Fedex certificate, then I picked certificate with pem file format, edit it by adding alias:wsbeta-fedex (anyname you like) on the top

    3. From terminal, redirect to lib folder then key in command :

    java -jar javacloud.jar -dc <data-center> -identitydomain <id-domain-name> -serviceinstance <instance-name> -user <user-name> -password <password>  -httpproxy <proxy-server:proxy-port> -add-ssl-certificates -path <path to certificate file>

    4. Then check is that certificate added, check it by key in:

    java -jar javacloud.jar -dc <data-center> -identitydomain <id-domain-name> -serviceinstance <instance-name> -user <user-name> -password <password>  -httpproxy <proxy-server:proxy-port> -list-ssl-certificates

    5. If found it in list, then go to JCS-SX java concole and restart it. Done ^^

Answers

  • Casey Tan
    Casey Tan Member Posts: 10
    edited Oct 31, 2016 7:51PM Accepted Answer

    I have found the solution from

    1. Download SDK from https://docs.oracle.com/cloud/latest/javacs_gs/CSJSU/GUID-B2007CE3-274C-43F9-80CF-E388B5F2C065.htm#CSJSU7165

    2. Download certificate from Fedex certificate, then I picked certificate with pem file format, edit it by adding alias:wsbeta-fedex (anyname you like) on the top

    3. From terminal, redirect to lib folder then key in command :

    java -jar javacloud.jar -dc <data-center> -identitydomain <id-domain-name> -serviceinstance <instance-name> -user <user-name> -password <password>  -httpproxy <proxy-server:proxy-port> -add-ssl-certificates -path <path to certificate file>

    4. Then check is that certificate added, check it by key in:

    java -jar javacloud.jar -dc <data-center> -identitydomain <id-domain-name> -serviceinstance <instance-name> -user <user-name> -password <password>  -httpproxy <proxy-server:proxy-port> -list-ssl-certificates

    5. If found it in list, then go to JCS-SX java concole and restart it. Done ^^

This discussion has been closed.