Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRKD /
avatar image
Question by Ripley79 · Aug 27, 2015 at 11:47 AM · javarkd-apirkd

TRKD API certificate

I was working with TRKD using Java and keep getting this exception error:

com.sun.xml.ws.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLHandshakeException:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target com.sun.xml.ws.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLHandshakeException:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:132) com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:153)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by DevTrev · Aug 31, 2015 at 10:58 AM

The reason for getting “unable to find valid certification path to requested target” error is that the TRKD API certificate is not included in the trusted store used by your Java runtime.

You need to add the certificate into the trusted store in order to fix the issue. For this purpose you can use the standard keytool.exe utility from JDK (%JDK_HOME%\bin folder) installation. Below is a walkthrough on how to do this:

1. Download TRKD API certificate and save in locally in DER format:

2. Run keytool with the following parameters:

keytool.exe –importcert –file “[path_to_saved_cert]” –keystore “[path_to_keystore_file] –alias [alias_name]”

Examples.

In case of JDK keystore file is located in “%JDK_HOME%\jre\lib\security\cacerts”:

keytool.exe –importcert –file “D:\trkd.cer” –keystore“d:\runtime\jdk_1_6\jre\lib\security\cacerts” –alias trkd_cert

In case of JRE keystore file is located in “%JRE_HOME%\lib\security\cacerts”:

keytool.exe –importcert –file “D:\trkd.cer” –keystore “d:\runtime\jre_1_6\lib\security\cacerts” –alias trkd_cert

Default password for cacerts keystore is "changeit" without quotes.

We recommend to add TRKD certificate into both JDK and JRE installations as your IDE and standalone application (application server) may use different runtimes.

Also, in case of using an application server, please make sure that it doesn't have some internal keystore different from the default one (e.g. IBM WebSphere AS). If so, please follow the instructions how to import certificate for your particular application server.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
No one has followed this question yet.

Related Questions

Question regarding TimeSeries and Quotes

THOMSON REUTERS KNOWLEDGE DIRECT API

Receiving Updade "101 Switching protocols" in WebSocket API

Java Client for TR Chart

KNOWLEDGE DIRECT API - Search - Derivative Instruments - Get field IssueISIN

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • FX Venues
    • FX Trading – RFQ Maker
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges