web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

FTP Upload in the SSL Mode

(0) ShareShare
ReportReport
Posted on by 11,471

Hi,

I am using DotNet variable to upload a file using FTP.  The FTP is configured for SSL.  During handshake, it prompts an error :

A call to System.Net.FtpWebRequest.GetResponse failed with this message: The remote certificate is invalid according to the validation procedure.

Any idea?

*This post is locked for comments

I have the same question (0)
  • mmv Profile Picture
    11,471 on at

    Or,

    How do I use this in NAV:-

    ServicePointManager.ServerCertificateValidationCallback = New System.Net.Security.RemoteCertificateValidationCallback(AddressOf customCertValidation)

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi mahesh, ftp with ssl is a special thing, needs that both sides speak ftp with ssl (sftp). first check that the ftp server can ssl. then you need a sftp lib. no good idea to develope that for yourselve. use e.g. www.nuget.org/.../NetSFTPLibrary regards

  • Verified answer
    mmv Profile Picture
    11,471 on at

    Hi Jonathan,

    Thank you so much for your inputs.

    At last, I created my own DotNet assembly to deal with FTP upload with ssl.

  • cokamaksimovic Profile Picture
    on at

    Hi Mahesh,

    Could you please post your code / link to it if you are willing to share ?

    Thanks,

    Mila

  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    Hello Mila,

    Already i have posted article regarding How to handle SFTP.

    please go thru the below link, and let us know if any question on that blog.

    SFTP Management

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans