Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel #243

Closed
spidey323 opened this issue Nov 13, 2020 · 3 comments
Assignees
Milestone

Comments

@spidey323
Copy link

Steps to reproduce

[Net.ServicePointManager]::SecurityProtocol = "Tls, Tls11, Tls12, Ssl3"
Connect-VRaServer -server test.com -Username "me" -password $pw -IgnoreCertRequirements

Expected behavior

connect without errors

Actual behavior

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

Environment data

vra8.2 with PvRA 4.1

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.17763.1007
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.1007
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
> $vRAConnection
n/a
@jonathanmedd jonathanmedd added this to the 4.2.0 milestone Jan 21, 2021
@jonathanmedd
Copy link
Contributor

Thanks for reporting. We're already aware of one issue with Connect-vRAServer and vRA 8.2 - will see if this one is related /cc @Stevio54

@Stevio54
Copy link
Contributor

Hello, I have been unable to recreate this issue in three different environments. It seems the issue may be in how your environment is set?

@Stevio54
Copy link
Contributor

A colleague @mpuckett159 suggested checking this: https://stackoverflow.com/questions/41618766/powershell-invoke-webrequest-fails-with-ssl-tls-secure-channel, as this may be an issue in how Powershell is handling the protocols, you may need to change the order or try some of the other soltinos here.

@jonathanmedd jonathanmedd modified the milestones: v4.3.0, v5.0.0 Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants