VMware Cloud Community
socalflya
Contributor
Contributor
Jump to solution

Error - Connect-VIServer - Could not establish trust relationship for the SSL/TLS secure channel...

Any help that gets me logged into a vcenter server with powercli 10 is much appreciated!

I continue to get this error when trying to connect to my vcenter server.

pastedImage_0.png

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Did you set the IngnoreInvalidCertificate setting to Ignore?

Do a Get-PowerCLIConfiguration.

If it says 'unset', do

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

7 Replies
LucD
Leadership
Leadership
Jump to solution

Did you set the IngnoreInvalidCertificate setting to Ignore?

Do a Get-PowerCLIConfiguration.

If it says 'unset', do

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

socalflya
Contributor
Contributor
Jump to solution

This was it! Perfect!

0 Kudos
SAI4841
Contributor
Contributor
Jump to solution

Really Helped me a lot Thank you

0 Kudos
one_topsy
Enthusiast
Enthusiast
Jump to solution

Awesome thanks, this really helped me as well!

reminds me to always verify ssl certs are trusted or ignored and to use verbose when troubleshooting!

------ VCP6-DCV | Aspiring VMWare expert
0 Kudos
ehsanijavad
Enthusiast
Enthusiast
Jump to solution

Hi LucD

It doesn't work for me.

pastedImage_0.png

Thank you.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

Try setting the InvalidCertificate option to 'prompt', that way you see what is actually happening.

The SSL/TLS error could be caused by a discrepancy between the vCenter name you use on the Connect-VIServer and what is defined in the certificate.

Laos, a SSL/TLS error is not necessarily related to a certificate issue.

It could be that there is no matching TLS version between your station and the vCenter.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
one_topsy
Enthusiast
Enthusiast
Jump to solution

add -verbose and paste the output, it will give more info as to what's happening

------ VCP6-DCV | Aspiring VMWare expert
0 Kudos