NetTalk Central
NetTalk FTP => FTP - Ask For Help => Topic started by: Ubaidullah on June 23, 2020, 05:19:03 AM
-
Hi Bruce,
When connecting to an FTP server using Explicit SSL over port 21, I am getting the following error:
The error number was -69 which means The SSL Remote Certificate Failed Verification.
Command = user
I thought it might be due to CARoot.pem being old, so I downloaded the latest from Mozilla but the error still persists.
I am able to connect to this same server using Total Commander without any issue, so the issue seems to be from my side.
I will appreciate your guidance on how to resolve this.
Thanks.
-
I'd need to see the connection to be sure.
Send me the name of the server. (I don't need a login.)
cheers
Bruce
-
The server is at: b2bmft.cat.com
Regards,
Ubaidullah Nubar.
-
so the certificate common name does not match the server name you are using. So set;
FtpControl.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
FtpData.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
Cheers
Bruce
-
I am still getting the same error.
I placed the code you suggested before the call to thisFtpControl.GetRemoteFile
thisFtpControl.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
thisFtpData.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
Any other suggestions to resolve this ?
Regards,
Ubaidullah Nubar.
-
I got it working by setting the following:
thisFtpControl.SSLCertificateOptions.CertificateFile = ''
thisFtpControl.SSLCertificateOptions.PrivateKeyFile = ''
thisFtpControl.SSLCertificateOptions.DontVerifyRemoteCertificateCommonName = 1
thisFtpControl.SSLCertificateOptions.DontVerifyRemoteCertificateWithCARoot = 1
Thanks for the help. It got me going in the right direction.
Regards,
Ubaidullah Nubar.