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 }
]
}
}

--

--

--

Software Engineer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

4 Key Cloud Migration Strategies To Accelerate Your Digital Era

Google is hiring secretly by Google Foobar Challenge!!!

Did Windows 7 Tell Me How to Pass My Gamified Assessment

How to communicate with the Cardano node on a remote host

Flutters’ Stable Experience Parity Is Becoming a Problem

Introduction to Kubernetes(K8s) & Use Cases solved by K8s in Industries

Automating Youtube views

How to renew your tablet keyboard

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
Ashwini Anand

Ashwini Anand

Software Engineer.

More from Medium

A New Approach to Fraud Credit Card Transaction Prevention

Detect Sensitive Data (PII) by Amazon Macie

How does java implement the Enhanced For loop?

Convenient Way to Mutate Immutable Objects