SSL handshake failure for liberty application using cloudant

≯℡__Kan透↙ 提交于 2019-12-01 11:33:17

You need to add remote server certificate to WAS trustStore

Get remote certificate (e.g: using Linux/Mac): echo "" | openssl s_client -connect YOUR_REMOTE_SERVER:443 -showcerts 2>/dev/null | openssl x509 -out certfile.txt

Import certificate to trustStore file: keytool -import -alias ca -file certfile.txt -keystore trust.jks -storepass changeit

Use this JKS trust store in your WAS server.xml, copy it into your WAS ({WLP}/usr/servers/{YOUR_SERVER}/resources/security) and add these into your server.xml e.g:

<ssl id="defaultSSLSettings" sslProtocol="TLSv1.2" keyStoreRef="defaultKeyStore"
    trustStoreRef="defaultTrustStore" />
<keyStore id="defaultKeyStore" location="${server.config.dir}/resources/security/key.jks"
    password="changeit" />
<keyStore id="defaultTrustStore"
    location="${server.config.dir}/resources/security/trust.jks" password="changeit" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!