SSL Handshake error when connect to Watson API's

  • 01 Feb, 2018

I start a new java project on eclipse using the SDK for Watson. When i try to connect on any watson service i got the error:

CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN CN=*.watsonplatform.net, O=International Business Machines Corporation, L=Armonk, ST=New York, C=US was sent from the target host

This error means, that the local Liberty trust store does not have the correct signer certificate from the remote WATSON website where you tries to connect to. It’s a certificate error. To solve the problem on my MAC i just do the following:

1 - Download the cetificate. The easy way i found was:

openssl s_client -host https://gateway.watsonplatform.net -port 443 -prexit -showcerts

2 - Create a text file with the first certificate

3 - Import the certificate on the truststore

keytool -import -alias watsonsigner -file cert1.pem -keystore /Users/[pathto key.jks]/key.jks -storepass password -storetype jks

Related Posts

IBM will begin sunsetting IBM Watson Personality Insights

  • 02 Dec, 2020

IBM will begin sunsetting IBM Watson™ Personality Insights on 1 December 2020. For a period of one year from this date, you will still be able to use Personality Insights. However, as of 1 December 20

IBM will begin sunsetting IBM Watson Personality InsightsRead More

IBM Watson Tutorials

  • 03 Jan, 2020

I found today this link https://ibmcloud-watson-day.mybluemix.net/. There are several tutorials about IBM Watson API's

IBM Watson TutorialsRead More

Setup Error on MAC - Watson Python SDK

  • 19 Apr, 2018

Today i got the following error when i install watson python sdk on my MAC: I use the command :  sudo pip install watson-developer-cloud The exception was: Traceback (most recent call last): File "/

Setup Error on MAC - Watson Python SDKRead More