Solution for java.net.ConnectException: General SSLEngine problem

{"errors":[{"code":"General SSLEngine problem","message":"java.net.ConnectException: General SSLEngine problem\n\tat org.asynchttpclient.netty.channel.NettyConnectListener.onFailure(NettyConnectListener.java:162)\n\tat org.asynchttpclient.netty.channel.NettyConnectListener$1.onFailure
openssl s_client -connect ${SERVERHOST}:${SERVERPORT} </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ${SERVERHOST}.cert
keytool -import -noprompt -trustcacerts -alias ${SERVERHOST} -file ${SERVERHOST}.cert -keystore ${KEYSTORE} -storepass ${KEYSTOREPASSWORD}
keytool -list -v -keystore ${KEYSTORE} -storepass ${KEYSTOREPASSWORD} -alias ${SERVERHOST}
openssl s_client -connect example.com:8090 </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > example.com.certkeytool -import -noprompt -trustcacerts -alias example.com -file example.com.cert -keystore /usr/lib/jvm/java/jre/lib/security/cacerts -storepass changeitkeytool -list -v -keystore /usr/lib/jvm/java/jre/lib/security/cacerts -storepass changeit -alias example.com
ws.ssl {
trustManager = {
stores = [
{ path: ${store.directory}/truststore}
{ path: ${java.home}/lib/security/cacerts }
]
}
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store