Title: Invoke-RestMethod and Invoke-WebRequest don't support client certificate authentication with certificate files · Issue #4544 · PowerShell/PowerShell · GitHub
Open Graph Title: Invoke-RestMethod and Invoke-WebRequest don't support client certificate authentication with certificate files · Issue #4544 · PowerShell/PowerShell
X Title: Invoke-RestMethod and Invoke-WebRequest don't support client certificate authentication with certificate files · Issue #4544 · PowerShell/PowerShell
Description: Invoke-RestMethod and Invoke-WebRequest requires the certificate specified by -Certificate to be imported in the certificate store. Both methods do not allow using certificates from files. This breaks client certificate authentication on...
Open Graph Description: Invoke-RestMethod and Invoke-WebRequest requires the certificate specified by -Certificate to be imported in the certificate store. Both methods do not allow using certificates from files. This bre...
X Description: Invoke-RestMethod and Invoke-WebRequest requires the certificate specified by -Certificate to be imported in the certificate store. Both methods do not allow using certificates from files. This bre...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4544
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invoke-RestMethod and Invoke-WebRequest don't support client certificate authentication with certificate files","articleBody":"`Invoke-RestMethod` and `Invoke-WebRequest` requires the certificate specified by _-Certificate_ to be imported in the certificate store. Both methods do not allow using certificates from files. This breaks client certificate authentication on non-Windows platforms.\r\n\r\n**Proposal**: Support the use of certificate files for the client authentication by adding a new parameter _-CertificateFile_ or by using the x509 object from `Get-PfxCertificate` directly.\r\n\r\nThis was tested on Ubuntu 16.04 with PowerShell 6.0.0-beta.5 and on Windows with PowerShell 5.0.\r\n\r\nRef: https://github.com/PowerShell/PowerShell/issues/473 and https://github.com/PowerShell/PowerShell/issues/1865","author":{"url":"https://github.com/Karneades","@type":"Person","name":"Karneades"},"datePublished":"2017-08-10T13:12:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/4544/PowerShell/issues/4544"}
| 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:aa259b4d-c89a-39bb-b151-6fa262984b3f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B88:9AF43:437C3C:61BEE2:6A574AB2 |
| html-safe-nonce | 2c69041867453092316ae5d160a7cfd291d062981043aabb08a81efd194e5ffa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Qjg4OjlBRjQzOjQzN0MzQzo2MUJFRTI6NkE1NzRBQjIiLCJ2aXNpdG9yX2lkIjoiMzkyMzQ5OTU0MDYwNzg3OTg1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2a52a6e61d983d5d44bb40416c50911c8c0c7ff94e97b2018d2716e410ddf942 |
| hovercard-subject-tag | issue:249341631 |
| 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/4544/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c82135d20fd59429da5b9a6365eac75db03c05d49b8bce70259a1b94b1d35a91/PowerShell/PowerShell/issues/4544 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c82135d20fd59429da5b9a6365eac75db03c05d49b8bce70259a1b94b1d35a91/PowerShell/PowerShell/issues/4544 |
| og:image:alt | Invoke-RestMethod and Invoke-WebRequest requires the certificate specified by -Certificate to be imported in the certificate store. Both methods do not allow using certificates from files. This bre... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Karneades |
| 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