Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 9
Report Inappropriate Content
Message 1 of 3

Secure channel error

Has anyone received the error 'Could not create SSL/TLS secure channel' when executing the below command? The command was working before another team modified some cryptography and cipher suite settings, however they can't provide detailed documentation as to what they changed. If I paste the URL into a browser, the results return just fine.

invoke-restmethod -method get -uri 'https://eposerver:8443/remote/system.find?searchText=workstation' -credentials $creds

2 Replies

Re: Secure channel error

​ - Try adding the following before your invoke command.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12

I was running into the same issue with my new environments and this made everything better.

Level 9
Report Inappropriate Content
Message 3 of 3

Re: Secure channel error

I'm currently running [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Ssl3,[System.Net.SecurityProtocolType]::Tls,[System.Net.SecurityProtocolType]::Tls11,[System.Net.SecurityProtocolType]::Tls12 just to cover everything.

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community