Title: On CentOS Powershell uses the system libcurl that does not support custom SSL certificate validation · Issue #2511 · PowerShell/PowerShell · GitHub
Open Graph Title: On CentOS Powershell uses the system libcurl that does not support custom SSL certificate validation · Issue #2511 · PowerShell/PowerShell
X Title: On CentOS Powershell uses the system libcurl that does not support custom SSL certificate validation · Issue #2511 · PowerShell/PowerShell
Description: This is similar to #2211 but for CentOS. This is probably still an issue with dotnet but maybe powershell can patch it in a similar way as the OS X patch. I haven't found a workaround yet. Steps to reproduce Run: $handler = new-object "S...
Open Graph Description: This is similar to #2211 but for CentOS. This is probably still an issue with dotnet but maybe powershell can patch it in a similar way as the OS X patch. I haven't found a workaround yet. Steps to...
X Description: This is similar to #2211 but for CentOS. This is probably still an issue with dotnet but maybe powershell can patch it in a similar way as the OS X patch. I haven't found a workaround yet. Step...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2511
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On CentOS Powershell uses the system libcurl that does not support custom SSL certificate validation","articleBody":"This is similar to #2211 but for CentOS. This is probably still an issue with dotnet but maybe powershell can patch it in a similar way as the OS X patch. I haven't found a workaround yet.\n## Steps to reproduce\n\nRun:\n\n``` powershell\n$handler = new-object \"System.Net.Http.HttpClientHandler\"\n$handler.ServerCertificateCustomValidationCallback = { $true }\n$client = new-object \"System.Net.Http.HttpClient\" -Arg @($handler)\n$client.GetStringAsync(\"https://google.com\").GetAwaiter().GetResult()\n```\n## Expected behavior\n\nAn error telling you that there is no runtime context on the thread. Which means the execution reached the validation script block.\n## Actual behavior\n\nError:\n\n```\nException calling \"GetResult\" with \"0\" argument(s): \"The libcurl library in \nuse (7.29.0) and its SSL backend (\"NSS/3.19.1 Basic ECC\") do not support \ncustom handling of certificates. A libcurl built with OpenSSL is required.\"\nAt line:1 char:1\n+ $client.GetStringAsync(\"https://google.com\").GetAwaiter().GetResult()\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n + CategoryInfo : NotSpecified: (:) [], MethodInvocationException\n + FullyQualifiedErrorId : PlatformNotSupportedException\n```\n## Environment data\n\n``` powershell\n\u003e $PSVersionTable\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.11 \nCLRVersion \nWSManStackVersion 3.0 \nPSRemotingProtocolVersion 2.3 \nSerializationVersion 1.1.0.1\n```\n","author":{"url":"https://github.com/atanasa","@type":"Person","name":"atanasa"},"datePublished":"2016-10-20T14:34:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/2511/PowerShell/issues/2511"}
| 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:ce2ed6ea-f08c-ad8e-8a52-2f8076c3776b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5C6:33585E:63F7945:8D0076D:6A5751A4 |
| html-safe-nonce | 39af4d9981f763f7106d6d5f40aebd7040ca84175df402187994dd0d09105e8c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUM2OjMzNTg1RTo2M0Y3OTQ1OjhEMDA3NkQ6NkE1NzUxQTQiLCJ2aXNpdG9yX2lkIjoiODA5MTAyMTc1MjM0MjYzMDgyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 387efb16ffc017f7dbd78cf9a4dd4369983bafa656f9b740ba8abcb1e3bf0a0e |
| hovercard-subject-tag | issue:184246924 |
| 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/2511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a33b95e364dddac7ed288a8cad968a45c08e283984a16c9a1aa6ad4b7127fdf/PowerShell/PowerShell/issues/2511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a33b95e364dddac7ed288a8cad968a45c08e283984a16c9a1aa6ad4b7127fdf/PowerShell/PowerShell/issues/2511 |
| og:image:alt | This is similar to #2211 but for CentOS. This is probably still an issue with dotnet but maybe powershell can patch it in a similar way as the OS X patch. I haven't found a workaround yet. Steps to... |
| 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 | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 602250ea3b6dd8302a7220ef98adb828dbc807e4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width