Title: Need a param to hand sites with SSL issues · Issue #2114 · PowerShell/PowerShell · GitHub
Open Graph Title: Need a param to hand sites with SSL issues · Issue #2114 · PowerShell/PowerShell
X Title: Need a param to hand sites with SSL issues · Issue #2114 · PowerShell/PowerShell
Description: Steps to reproduce -Use Invoke-RestMethod or Invoke-WebRequest on a site with SSL errors, like this one EuroSport sample bad SSL page Expected behavior Be able to load the site/retrieve an object Actual behavior Receive a terminating err...
Open Graph Description: Steps to reproduce -Use Invoke-RestMethod or Invoke-WebRequest on a site with SSL errors, like this one EuroSport sample bad SSL page Expected behavior Be able to load the site/retrieve an object A...
X Description: Steps to reproduce -Use Invoke-RestMethod or Invoke-WebRequest on a site with SSL errors, like this one EuroSport sample bad SSL page Expected behavior Be able to load the site/retrieve an object A...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2114
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need a param to hand sites with SSL issues","articleBody":"\u003c!--\n\nIf it is a bug report:\n- make sure you are able to repro it on the latest released version. \nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\n- Search the existing issues.\n- Refer to the [FAQ](../docs/FAQ.md).\n- Refer to the [known issues](../docs/KNOWNISSUES.md).\n- Fill out the following repro template\n\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\n-->\n## Steps to reproduce\n\n-Use Invoke-RestMethod or Invoke-WebRequest on a site with SSL errors, like this one [EuroSport sample bad SSL page](https://tv.eurosport.com/)\n## Expected behavior\n\nBe able to load the site/retrieve an object\n## Actual behavior\n\nReceive a terminating error of:\n\n> The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.\n\nThis can be worked around by using Add-Type to invoke some C# to set a new AcceptAllCertificates Policy, but this approach does not function on PowerShell for Linux/Mac OS, as the Core CLR doesn't have the types needed [X509].\n\nI would love to see a new switch added to Invoke-WebRequest and Invoke-RestMethod, maybe titled `-AcceptAllSSL` or something similar. \n## Environment data\n\n\u003c!-- provide the output of $PSVersionTable -->\n\n``` powershell\n> $PSVersionTable\n\nName Value \n---- ----- \nPSVersion 5.1.14393.103 \nPSEdition Desktop \nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} \nBuildVersion 10.0.14393.103 \nCLRVersion 4.0.30319.42000 \nWSManStackVersion 3.0 \nPSRemotingProtocolVersion 2.3 \nSerializationVersion 1.1.0.1 \n\n\n\n\n```\n","author":{"url":"https://github.com/1RedOne","@type":"Person","name":"1RedOne"},"datePublished":"2016-08-29T02:04:52Z","url":"https://github.com/PowerShell/PowerShell/issues/2114"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:c5a45faa-6e6a-e860-5b1e-6d14c87910b1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA9E:24F1E7:E0B232:1422DAB:6AFDB3D0 |
| html-safe-nonce | a3bd73a27d1c5207ef866979694357e7f993414b795bb315b20c431c721e112d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTlFOjI0RjFFNzpFMEIyMzI6MTQyMkRBQjo2QUZEQjNEMCIsInZpc2l0b3JfaWQiOiI3MDkzNzkxMjEwMjAzODg2NTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0d5f56ba6c7db61df2dd493e8eec899e6523be5abba50472e01cce2af321738d |
| hovercard-subject-tag | issue:173682949 |
| 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/2114/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3a91b9e14569525685aa6681e684096aec5ea00199f60a6cdf70e8838048bd8/PowerShell/PowerShell/issues/2114 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3a91b9e14569525685aa6681e684096aec5ea00199f60a6cdf70e8838048bd8/PowerShell/PowerShell/issues/2114 |
| og:image:alt | Steps to reproduce -Use Invoke-RestMethod or Invoke-WebRequest on a site with SSL errors, like this one EuroSport sample bad SSL page Expected behavior Be able to load the site/retrieve an object A... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 1RedOne |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3c532f4d069d6fbe9b1837450343d1b9e0619a7d5c4ba0b3b64fd8e0bae67c7e |
| 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 | 5396ad00d1c6d19097aee7fc4d00a2eb03432c8f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width