-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: SSL handshake error on latest alpine jre image #319
Comments
@BalmungSan Do you know which certificate it is trying to connect with ? |
@karianna Do you mean the public certificate from the server? If so, I am sharing the information obtained using OpenSSL; including the certificate chain. Not sure how to obtain this information from the application itself, but AFAIK it should be the same. Details
(I double checked before posting, and it seems nothing there is sensitive. But, if I shared something I shouldn't, please let me know) |
I'm facing the same issue, I have found that providing the truststore password ( PS: I'm using https://github.com/MichalHecko/SSLPoke for run the tests |
This is likely due to using TLS 1.3 on the client side by default new in 8u352. See: |
I also though that may be related. |
I take it this was bare metal JDK 8 on alpine vs. JDK 8 in an alpine container? |
@jerboaa it was bare metal JDK 8 version |
@BalmungSan Does installing |
@jerboaa I can confirm that installing |
Good to know, thanks! |
Please add the exact image (with tag) that you are using
eclipse-temurin:8u352-b08-jre-alpine
Please add the version of Docker you are running
What happened?
Our Kotlin (Vert.x) application stopped working a couple of days ago.
After investigating the logs, we discovered that the problem is that the application couldn't establish a connection with the database (MongoDB hosted on Atlas) due an SSL handshake error.
After debugging we identified that the issue is related to the Docker image, since running outside of Docker (with the same JDK version) doesn't produce the error. Also, using the previous Docker image (
eclipse-temurin:8u345-b01-jre-alpine
) also fixes the problem.Additional details
We tried to fix the problem running the following commands (both interactively inside a running container, as well as in the Dockerfile) but no combination of them fixed the problem.
The JAR is run using
We also tried testing the TCP connection within the container using openssl with the following command:
And it seemed to succeed correctly.
Relevant log output
The text was updated successfully, but these errors were encountered: