0

I'm getting error:

Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel. 

The command I'm running is okay on other servers. Most of the answers to this error is about security protocol. While, here is mine:

PS C:\>[Net.ServicePointManager]::SecurityProtocol
Ssl3, Tls11, Tls12

And I still get this error. What am I missing?

Dongkai Yu
  • 89
  • 3
  • 10
  • Have you tried this? https://stackoverflow.com/questions/41618766/powershell-invoke-webrequest-fails-with-ssl-tls-secure-channel – allexiusw May 15 '20 at 21:02
  • Does this answer your question? [Powershell Invoke-WebRequest Fails with SSL/TLS Secure Channel](https://stackoverflow.com/questions/41618766/powershell-invoke-webrequest-fails-with-ssl-tls-secure-channel) – allexiusw May 15 '20 at 21:03
  • As I mentioned in the question, I already have Tls12 in the environment. – Dongkai Yu May 18 '20 at 15:33
  • Are you sure you are setting the spaces in assign operator '=' by definition it doesn't work if you join it with the variables. – allexiusw May 18 '20 at 18:49
  • Copied the command you suggested, doesn't wok still. – Dongkai Yu May 19 '20 at 19:56
  • To what URL are you are trying to access? – allexiusw May 20 '20 at 01:31
  • Investigating network connectivity issue. Possible firewall issue. The same command can access other web resources only not that particular resource is not reachable. – Dongkai Yu May 23 '20 at 20:08

0 Answers0