Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Connect to FTP server using only certificate, without hardcoded password

Afaik, CopSSH is an SSH/SFTP server. Not an FTP server. SFTP uses private keys in general, not certificates. I do not think your current code can works against CopSSH. Please make sure you know if you are connecting to an FTP or SFTP server.
debolina

Connect to FTP server using only certificate, without hardcoded password

We are working on a project, where we perform file transfer from 1 system to another. The server is run using CopSSH and the client uses WinSCP API.

Currently we are evaluating ways of performing secure transfer, without using hardcoded credentials. Can this be done, by using only certificates, and without mentioning the password:
SessionOptions sessionOptions = new SessionOptions
{
    Protocol = Protocol.Ftp,
    FtpSecure = FtpSecure.Explicit,
    HostName = "ip address",
    UserName = "tester",
    TlsClientCertificatePath = "Path to certificate file",
};