You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mark Kraus (@markekraus)-SkipCertificateCheck makes it work, but it shouldn't crash if not used. I tried the repro on Windows and Linux (don't have Mac in my work office) and it returns an error as expected. If someone finds it still crashes on Mac, please comment here. Otherwise, I think this is closed.
Activity
SteveL-MSFT commentedon Apr 18, 2017
corefx uses libcurl internally on Linux. can you try the same with curl?
aarroyoc commentedon Apr 18, 2017
Tested in Bash and Powershell. It doesn't crash any of the shells unlinke Invoke-RestMethod.

aarroyoc commentedon Apr 18, 2017
Maybe this title is more appropiate for the issue: "Invoke-RestMethod on a bad SSL setup crash"
[-]Invoke-RestMethod on a local SSL setup crashes[/-][+]Invoke-RestMethod on a bad SSL setup crash[/+]SteveL-MSFT commentedon Apr 18, 2017
adrianarroyocalle I can look into this if you can provide me instructions to setup a HTTPS endpoint on my machine that repos this
aarroyoc commentedon Apr 20, 2017
I'll try, but don't expect anything these days because I'm quite busy
aarroyoc commentedon May 1, 2017
Hi
Doing:
also crashes PowerShell instead of giving an error. That is a public URL you can use to test.
markekraus commentedon Sep 21, 2017
This looks like it was closed by #2006 an #4026. using the
-SkipCertificateCheckoption with certificates that have name mismatches works now.Steve Lee (@SteveL-MSFT) Can we consider this one closed?
SteveL-MSFT commentedon Sep 21, 2017
Mark Kraus (@markekraus)
-SkipCertificateCheckmakes it work, but it shouldn't crash if not used. I tried the repro on Windows and Linux (don't have Mac in my work office) and it returns an error as expected. If someone finds it still crashes on Mac, please comment here. Otherwise, I think this is closed.