Skip to content

Conversation

rschlussel
Copy link

This code uses the FATAL_ALERT failure behavior, which is only supported by the JDK ssl provider. However, if no SSL Provider is set, it is environment dependent whether the JDK or OpenSSL provider is used. This change Explicitly sets the ssl provider to JDK.

This fixes an issue where servers might fail on start up in ReferenceCountedOpenSslContext with "OpenSSL provider does not support FATAL_ALERT behavior" if they get created with OPEN_SSL as the provider.

Netty code pointers:
https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/ssl/JdkSslContext.java#L420 https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java#L777 https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/ssl/SslContext.java#L832 https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/ssl/SslContext.java#L127-L135

This code uses the FATAL_ALERT failure behavior, which is only supported
by the JDK ssl provider. However, if no SSL Provider is set, it is
environment dependent whether the JDK or OpenSSL provider is used.
This change Explicitly sets the ssl provider to JDK.

This fixes an issue where servers might fail on start up in
ReferenceCountedOpenSslContext with "OpenSSL provider does not support
FATAL_ALERT behavior" if they get created with OPEN_SSL as the provider.

Netty code pointers:
https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/ssl/JdkSslContext.java#L420
https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslContext.java#L777
https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/ssl/SslContext.java#L832
https://github.com/netty/netty/blob/4.1/handler/src/main/java/io/netty/handler/ssl/SslContext.java#L127-L135
@rschlussel rschlussel requested a review from a team as a code owner June 27, 2025 16:01
@rschlussel rschlussel merged commit 3807ab8 into prestodb:master Jun 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants