Imports System.Net Imports System.Net.Security Imports System.Security.Cryptography.X509Certificates ' Added because certificate is for wrong server ' This just ignores the certificate error and uses the site Private Function ValidateCertificate(ByVal sender As Object, ByVal certificate As X509Certificate, ByVal chain As X509Chain, ByVal sslPolicyErrors As SslPolicyErrors) As Boolean 'Return True to force the certificate to be accepted. Return True End Function ' Then in the class new or form load call set the Callback to the newly create procedure to ignore any errors. Public Sub New() ' Added because certificate is for wrong server ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf ValidateCertificate) End Sub