Post a reply

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: FTP secure not accepting Certificate in .NET assembly

Marcel7819 wrote:

but sometimes the machine get replaced and the fingerprint changes, that why i need to use a certificate the machine are configured to accept the certificate.

I do not think that using client-certificate makes difference. Still you need to verify the server-certificate.

Do you know why i can connect to the machine via winscp.com with the certificate but i can can't connect to the machine using the .NET Assembly and the certificate.

The winscp.com caches accepted server-certificates. You have probably accepted the certificate before. But when the certificate changes, you still have to accept it manually.
Marcel7819

FTP secure not accepting Certificate in .NET assembly

I understand that I can use the fingerprint, but the problem is that I have connect to 72 machines every hour and download 500 + files. but sometimes the machine get replaced and the fingerprint changes, that why i need to use a certificate the machine are configured to accept the certificate.

Do you know why i can connect to the machine via winscp.com with the certificate but i can can't connect to the machine using the .NET Assembly and the certificate.
martin

Re: FTP secure not accepting Certificate in .NET assembly

The SessionOptions.SslCertificate accepts certificate fingerprint, such as "44:9c:68:38:0a:42:09:51:35:83:42:65:65:5e:97:8d:2e:d1:27:5a".
Marcel7819

FTP secure not accepting Certificate in .NET assembly

Hi

I can't connect to a filezilla ftp server using the .Net assembly and the certificate that i generated for the connection.

but I can connect to the filezilla ftp server using the command prompt window with the certificate. any ideas why?

my connection to the server requires ftps with implicit option.

I'm using a Powershell script..
here is my session options that I'm using.
$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::ftp
$sessionOptions.HostName = "0.0.0.0"
$sessionOptions.FtpMode = 'Active'
$sessionOptions.PortNumber = "990"
$sessionOptions.FtpSecure= 'Implicit'
$sessionOptions.UserName = "u"
$sessionOptions.Password = "u"
$sessionOptions.SslCertificate = 'C:\FZ_Cert.crt'