Use tRestClient to call an SSL enabled API

Highlighted
Eight Stars

Use tRestClient to call an SSL enabled API

Hello,

I've got an exception "Caused by: 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" in my tRestClient.

I'd like to have a step by step guide on SSL certificate installation to solve this error. The job run on OpenJDK RE 7u121.

 

Thanks for your time

Tags (3)

Accepted Solutions
Ten Stars

Re: Use tRestClient to call an SSL enabled API

You need to setup a keystore (where you save your trusted certificates) and access it with tKeyStore component before you connect to your api with tRestClient.
This is too much of a hasle,

However I switched using tSystem and curl command, redirects, cookies, full flexibility ... trust me on this Smiley Wink


All Replies
Eight Stars

Re: Use tRestClient to call an SSL enabled API

Is anybody out there ?

Ten Stars

Re: Use tRestClient to call an SSL enabled API

You need to setup a keystore (where you save your trusted certificates) and access it with tKeyStore component before you connect to your api with tRestClient.
This is too much of a hasle,

However I switched using tSystem and curl command, redirects, cookies, full flexibility ... trust me on this Smiley Wink

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read