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 2021, the offering will no longer be available. As an alternative, we encourage you to consider migrating to IBM Watson™ Natural Language Understanding, a service on IBM Cloud that uses deep learning to extract data and insights from text such as keywords, categories, sentiment, emotion, and syntax to provide insights for your business or industry. More information on this link(https://cloud.ibm.com/docs/personality-insights?topic=personality-insights-release-notes)

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 "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix\path, File "/Library/Python/2.7/site-packages/pip/req/req\set.py", line 778, in install requirement.uninstall(auto\confirm=True) File "/Library/Python/2.7/site-packages/pip/req/req\install.py", line 754, in uninstall paths\to\remove.remove(auto\confirm) File "/Library/Python/2.7/site-packa

Setup Error on MAC - Watson Python SDKRead More