Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It is possible to establish a trusted relationship for the SSL/TLS secure channel when using Invoke-Webrequest through PowerShell. This can be achieved by importing the root certificate of the SSL/TLS certificate authority into the local machine or user certificate store. Once the root certificate is imported, PowerShell will trust any certificates signed by that certificate authority. Alternatively, you can use the -SkipCertificateCheck parameter to bypass certificate validation, but this is not recommended as it can leave you vulnerable to man-in-the-middle attacks.