Ask Your Question
2

Is it not possible to establish a trusted relationship for the SSL/TLS secure channel when using Invoke-Webrequest through PowerShell?

asked 2022-04-01 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-04-11 08:00:00 +0000

djk gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-04-01 11:00:00 +0000

Seen: 8 times

Last updated: Apr 11 '22