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
{{ message }}
Repository navigation
Invoke-WebRequest: Vague error thrown, resulting from TLS issue #2942
I was not accurate. My idea is that if the browsers are doing warning about bad certificates but allow us to make the choice to continue or cancel then we have to do something similar.
Activity
rkeithhill commentedon Dec 31, 2016
At the very least it would be nice if the error message surfaced the inner exception info.
iSazonov commentedon Mar 14, 2017
It says that the server certificate is not valid. Should we add "DisableTLSCertificatesCheck"?
SteveL-MSFT commentedon Mar 14, 2017
Ilya (@iSazonov) the
-SkipCertificateCheckswitch is a workaround, but we should have a better error message hereiSazonov commentedon Mar 14, 2017
It can be useful with self-signed certificates.
SteveL-MSFT commentedon Mar 14, 2017
Got a fix, just need to add some tests:
iSazonov commentedon Mar 15, 2017
Do it makes sense to open a new Issue about
-SkipCertificateCheck?SteveL-MSFT commentedon Mar 15, 2017
Ilya (@iSazonov) can you be more specific about your issue with
-SkipCertificateCheck? It allows a self-sogned cert currentlyiSazonov commentedon Mar 15, 2017
I was not accurate. My idea is that if the browsers are doing warning about bad certificates but allow us to make the choice to continue or cancel then we have to do something similar.
SteveL-MSFT commentedon Mar 15, 2017
Ilya (@iSazonov) so you want a prompt? not sure how useful that is since I expect most uses of the webcmdlets to be in script rather than interactive.
iSazonov commentedon Mar 16, 2017
It seems a prompt may be breaking change.
I expect for request of URL with bad certificate:
-SkipCertificateCheck- warning.SteveL-MSFT commentedon Mar 16, 2017
Currently, by default it IS a terminating error:
I don't think we should give a warning if
-SkipCertificateCheckis used since it was explicitly specified:iSazonov commentedon Mar 16, 2017
Clear. Closed.