NetTalk Central

Author Topic: FTP Error -69 - The SSL Remote Certificate Failed Verification  (Read 3848 times)

Ubaidullah

  • Full Member
  • ***
  • Posts: 123
    • View Profile
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.

« Last Edit: June 23, 2020, 05:23:52 AM by Ubaidullah »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: FTP Error -69 - The SSL Remote Certificate Failed Verification
« Reply #1 on: June 23, 2020, 06:40:31 PM »
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

Ubaidullah

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: FTP Error -69 - The SSL Remote Certificate Failed Verification
« Reply #2 on: June 24, 2020, 12:58:10 AM »
The server is at: b2bmft.cat.com

Regards,
Ubaidullah Nubar.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: FTP Error -69 - The SSL Remote Certificate Failed Verification
« Reply #3 on: June 24, 2020, 07:25:47 PM »
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

Ubaidullah

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: FTP Error -69 - The SSL Remote Certificate Failed Verification
« Reply #4 on: June 25, 2020, 02:49:44 AM »
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.

Ubaidullah

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: FTP Error -69 - The SSL Remote Certificate Failed Verification
« Reply #5 on: June 25, 2020, 04:30:29 AM »
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.