-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
dotnet/corefx
#37697Labels
area-System.Securitybugos-linuxLinux OS (any supported distro)Linux OS (any supported distro)tenet-compatibilityIncompatibility with previous versions or .NET FrameworkIncompatibility with previous versions or .NET Framework
Milestone
Description
From @busesorin94 on October 2, 2018 11:17
This issue only happens on .NET Core 2.1.X, when using DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=1.
Steps to reproduce:
- Have a running application which calls a service using HTTPS for which the certificate authority is not trusted on the machine
- Install the new authority on the machine and run update-ca-certificates
- Call the service from the running .NET application
Expected behavior:
The application should take into account the newly installed certificate authority, without restarting the application
Actual behavior:
An exception is thrown:
System.Net.Http.HttpRequestException: The SSL connection could not be established
Workaround:
- You can restart the application after you run the update-ca-certificates command
- Add the environment variable DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0
Copied from original issue: aspnet/KestrelHttpServer#2972
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.Securitybugos-linuxLinux OS (any supported distro)Linux OS (any supported distro)tenet-compatibilityIncompatibility with previous versions or .NET FrameworkIncompatibility with previous versions or .NET Framework