Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Viewing all articles
Browse latest Browse all 2052

Re: PowerCLI 6.3 changes with VimClient.Connect() for C# - SSL/TLS Error

$
0
0

Able to work it out from some other searches....not the best way to do it perhaps, but will work for this purpose...

 

 

        private void IgnoreBadCertificates()

        {

            System.Net.ServicePointManager.ServerCertificateValidationCallback=new System.Net.Security.RemoteCertificateValidationCallback(AcceptAllCertifications);

        }

 

 

        private bool AcceptAllCertifications(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certification, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors)

        {

            return true;

        }


Viewing all articles
Browse latest Browse all 2052

Trending Articles