CoreFTP
CoreFTP copied to clipboard
FtpClientConfiguration.ClientCertificates.Add not working
I added my certificate in FtpClientConfiguration, but I still receive error.
System.AggregateException: One or more errors occurred. (The remote certificate is invalid according to the validation procedure.) ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
ftpFfg.ClientCertificates.Add(new X509Certificate2(@"C:\mycer.cer"));