FtpWebRequest "The remote certificate is not valid according to the verification procedure"

I have a .NET client application that is trying to execute ftp through a file on an ftp site that has a signed SSL certificate. This ftp site runs on Windows 7 Enterprise, IIS 7. I get the following error: "The remote certificate is not valid according to the verification procedure."

I tried installing the certificate in trusted root certificates, but this still does not work.

I used the delegate call in code that mentions some of the posts here - it works. But I do not want to use this in my production code.

Also in production, some of our customers use self-signed certificates.

Any ideas on how to fix this?

+5
source share
2 answers

You will also get this error if you try to connect to an IP address instead of a domain name. Because the certificate is issued to a domain name, the IP address does not work.

0
source

I had the same problem through .NET, and the root directory and certificate chain were trusted by my account and even the local account. Thus, the certificate was gold.

For me, I used the wrong host name. I used the full name (and got to the right place), but the certificate was actually issued to another alias. Therefore, make sure that your server name exactly matches the certificate.

Check this article that I found the answer ... Perhaps subscribing to events is what you need ...

http://www.limilabs.com/blog/the-remote-certificate-is-invalid-according-to-the-validation-procedure

-1

All Articles