Skip to content

Restore ServicePointManager SSL callback bridge for .NET 10#1275

Merged
claudiamurialdo merged 1 commit into
masterfrom
fix/restore-ssl-callback-net10
Apr 28, 2026
Merged

Restore ServicePointManager SSL callback bridge for .NET 10#1275
claudiamurialdo merged 1 commit into
masterfrom
fix/restore-ssl-callback-net10

Conversation

@claudiamurialdo
Copy link
Copy Markdown
Collaborator

Replace #if !NET10_0_OR_GREATER guards with #pragma warning disable SYSLIB0014 so that ServicePointManager.ServerCertificateValidationCallback is read and applied to SocketsHttpHandler.SslOptions in all target frameworks, including .NET 10. Without this bridge, apps relying on that callback to handle self-signed or name-mismatched certificates would fail SSL handshake after migrating to .NET 10.
Issue:208453

Replace #if !NET10_0_OR_GREATER guards with #pragma warning disable SYSLIB0014
so that ServicePointManager.ServerCertificateValidationCallback is read and
applied to SocketsHttpHandler.SslOptions in all target frameworks, including
.NET 10. Without this bridge, apps relying on that callback to handle
self-signed or name-mismatched certificates would fail SSL handshake after
migrating to .NET 10.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests April 27, 2026 18:04 — with GitHub Actions Inactive
@claudiamurialdo claudiamurialdo temporarily deployed to kafka-integration-tests April 27, 2026 18:04 — with GitHub Actions Inactive
@genexusbot
Copy link
Copy Markdown
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo merged commit 28b0c70 into master Apr 28, 2026
10 checks passed
@claudiamurialdo claudiamurialdo deleted the fix/restore-ssl-callback-net10 branch April 28, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants