-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
On OS X powershell loads the system libcurl which fails custom SSL certificate validation #2211
Comments
We already have some working-arounds for .NET Core's OpenSSL problems. I agree, this should be added. Please do so 😄 ( |
Just to reference, the upstream bug for this is https://github.com/dotnet/corefx/issues/9394 |
With alpha 10 this is still broken. The System.Security.Cryptography.Native.dylib is also broken in addition to System.Net.Http.Native.dylib. Steps to reproduce for "System.Security.Cryptography.Native.dylib":
Output:
The above is ok after I run:
To test the System.Net.Http.Native.dylib redirection here is a small script:
It still fails with:
If I run the workaround it is ok (note that it would report an error that it couldn't execute the script block which is an indicator that the callback was called - so it got redirected ok). |
Has the fix been introduced in Alpha 10? |
@vors did you re-run |
Steps to reproduce
Install powershell
Run any code/cmdlet that tries to validate ssl certificates through HttpClientHandler.ServerCertificateCustomValidationCallback
Expected behavior
Certificates are validated
Actual behavior
Error:
"One or more errors occurred. (The libcurl library in use (7.43.0) and its SSL backend ("SecureTransport") do not support custom handling of certificates. A libcurl built with OpenSSL is required.)"
Environment data
The output of
Note the path where libcurl is being loaded from.
If I manually patch it by running:
Then it is ok.
This bug is more for corefx, but until it is fixed there it would be good to have some workaround for powershell.
cc @ffeldhaus
The text was updated successfully, but these errors were encountered: