Could not establish trust relationship for the SSL/TLS secure channel. #5

Open
jakerobinson opened this Issue Jul 23, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@jakerobinson
Owner

jakerobinson commented Jul 23, 2011

When I try to run

Connect-vcloud "https://server.domain.com/api/..." -org my-org
-username abcd -password "efgh"

I get the error

The underlying connection was closed: Could not establish trust relationship for
the SSL/TLS secure channel.

@jakerobinson

This comment has been minimized.

Show comment Hide comment
@jakerobinson

jakerobinson Jul 23, 2011

Owner

Possible fix is to add the following line of code to the .ps1 file:

[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}

Owner

jakerobinson commented Jul 23, 2011

Possible fix is to add the following line of code to the .ps1 file:

[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment