2 Replies Latest reply on Feb 16, 2017 9:40 AM by kabi

    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

        • 1. Re: Secure channel error

          kabi - 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.

          • 2. 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]::Tls1 2 just to cover everything.