Re: How to use the WinSCP Assembly with a Client Certificate?
WinSCP does not support client certificates.
https://winscp.net/tracker/921
On the other hand, client certificates are used with TLS/SSL (FTPS or WebDAVS).
They are NOT used with SFTP, that you claim to use.
SFTP uses simple private/public key pair.
So if you actually want to use private key for authentication, use
https://winscp.net/eng/docs/library_sessionoptions
https://winscp.net/tracker/921
On the other hand, client certificates are used with TLS/SSL (FTPS or WebDAVS).
They are NOT used with SFTP, that you claim to use.
SFTP uses simple private/public key pair.
So if you actually want to use private key for authentication, use
SessionOptions.SshPrivateKeyPath
:
https://winscp.net/eng/docs/library_sessionoptions