Re: FTPWebRequest using SSL
Is the certificate that the server issues valid itself? Also, if you're willing to ignore such certificate issue errors, then implement an ICertificatePolicy class which returns true for every check of validation results.
Re: FTPWebRequest using SSL
Well, I'm informed that it is valid but I have idea how I would check it.
Anyway, I think I've done something similar by implementing the following:
Code:
Private Function CertificateAuthenticate( _
ByVal sender As Object, _
ByVal certificate As X509Certificate, _
ByVal chain As X509Chain, _
ByVal sslPolicyErrors As SslPolicyErrors _
) As Boolean
Return True
End Function
Public Sub New()
ServicePointManager.ServerCertificateValidationCallback = New System.Net.Security.RemoteCertificateValidationCallback(AddressOf CertificateAuthenticate)
End Sub
I must say that it seems like a rather convoluted way of doing things. Why I couldn't just turn off certificate checking on the FTPWebRequest object I don't know...:confused: