Title: On OS X powershell loads the system libcurl which fails custom SSL certificate validation · Issue #2211 · PowerShell/PowerShell · GitHub
Open Graph Title: On OS X powershell loads the system libcurl which fails custom SSL certificate validation · Issue #2211 · PowerShell/PowerShell
X Title: On OS X powershell loads the system libcurl which fails custom SSL certificate validation · Issue #2211 · PowerShell/PowerShell
Description: 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: "On...
Open Graph Description: Steps to reproduce Install powershell Run any code/cmdlet that tries to validate ssl certificates through HttpClientHandler.ServerCertificateCustomValidationCallback Expected behavior Certificates ...
X Description: Steps to reproduce Install powershell Run any code/cmdlet that tries to validate ssl certificates through HttpClientHandler.ServerCertificateCustomValidationCallback Expected behavior Certificates ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2211
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On OS X powershell loads the system libcurl which fails custom SSL certificate validation","articleBody":"## Steps to reproduce\n\nInstall powershell\nRun any code/cmdlet that tries to validate ssl certificates through HttpClientHandler.ServerCertificateCustomValidationCallback\n## Expected behavior\n\nCertificates are validated\n## Actual behavior\n\nError:\n \"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.)\" \n## Environment data\n\n``` powershell\n\u003e $PSVersionTable\n\nName Value \n---- ----- \nPSVersion 6.0.0-alpha \nPSEdition Core \nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} \nBuildVersion 3.0.0.0 \nGitCommitId v6.0.0-alpha.9 \nCLRVersion \nWSManStackVersion 3.0 \nPSRemotingProtocolVersion 2.3 \nSerializationVersion 1.1.0.1 \n\n```\n\nThe output of\n\n```\notool -L /usr/local/microsoft/powershell/6.0.0-alpha.9/System.Net.Http.Native.dylib\n/usr/local/microsoft/powershell/6.0.0-alpha.9/System.Net.Http.Native.dylib:\n @rpath/System.Net.Http.Native.dylib (compatibility version 0.0.0, current version 0.0.0)\n /usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 8.0.0)\n /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)\n /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)\n```\n\nNote the path where libcurl is being loaded from.\n\nIf I manually patch it by running:\n\n```\nbrew install curl --with-openssl\nsudo install_name_tool -change /usr/lib/libcurl.4.dylib /usr/local/opt/curl/lib/libcurl.4.dylib /usr/local/microsoft/powershell/6.0.0-alpha.9/System.Net.Http.Native.dylib\n```\n\nThen it is ok.\n\nThis bug is more for corefx, but until it is fixed there it would be good to have some workaround for powershell.\n\ncc @ffeldhaus\n","author":{"url":"https://github.com/atanasa","@type":"Person","name":"atanasa"},"datePublished":"2016-09-08T17:21:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/2211/PowerShell/issues/2211"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c2bd495d-1f33-c27d-e8d3-7d234d4e1017 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D354:5196E:A00F08:D5F067:6A58163D |
| html-safe-nonce | 7c9609ad512e866168715fe97ef5d2b06d2010ff049f5da14985ab74effe38ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzU0OjUxOTZFOkEwMEYwODpENUYwNjc6NkE1ODE2M0QiLCJ2aXNpdG9yX2lkIjoiMTU4Nzg3NzQyNzE4NzAyOTU2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b38bfdf7c3021630a8bc45e950d85203df63f18ede5a192cb687291e0b0bfdc0 |
| hovercard-subject-tag | issue:175811937 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2211/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87179d6c370a5223c5c8d68de169c4d2a3b07bf4b40255ab8227f2f37af020ce/PowerShell/PowerShell/issues/2211 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87179d6c370a5223c5c8d68de169c4d2a3b07bf4b40255ab8227f2f37af020ce/PowerShell/PowerShell/issues/2211 |
| og:image:alt | Steps to reproduce Install powershell Run any code/cmdlet that tries to validate ssl certificates through HttpClientHandler.ServerCertificateCustomValidationCallback Expected behavior Certificates ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | atanasa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width