Re: Using Certificate in winscp.dll getting error SessionOptions.FtpSecure is not enabled
Please post enough code, that allows us to reproduce the problem.
With VB.NET code like this, I'm not getting the exception:
With VB.NET code like this, I'm not getting the exception:
Dim sessionOptions As New SessionOptions
With sessionOptions
.Protocol = Protocol.Ftp
.HostName = "example.com"
.UserName = "user"
.FtpSecure = FtpSecure.Implicit
.TlsClientCertificatePath = "C:\certificate"
End With
Using session As New Session
session.Open(sessionOptions)
End Using