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: certificate

profaned wrote:

Is it possible now?
Once i give a path it says something about protocol not being webdav and ftpSecure is not set

But it needs to be SFTP with a client certificate

The SFTP (SSH) protocol does not use client certificates, it uses private keys.
So use the SessionOptions.SshHostKeyFingerprint:
https://winscp.net/eng/docs/library_sessionoptions#sshhostkeyfingerprint
profaned

certificate

Is it possible now?
Once i give a path it says something about protocol not being webdav and ftpSecure is not set

But it needs to be SFTP with a client certificate
dinosaurus

Hi,

Thanks for clearing that out.
Will test the beta and report if we see any flaws/bugs :|
martin

Re: Client Certificates

The client certificates are supported in 5.8.x beta only.
https://winscp.net/tracker/921

I've updated the documentation to make this clear.
dinosaurus

Client Certificates

Hi,

I really like the .net assembly :roll:
one question though..
It seems not possible to add a client certificate to the session as there is no member/property available.

How can I add a client certificate to the .sessionoptions (via powershell) ?

We are using Version 5.7.6.0 of the .net assembly.

https://winscp.net/eng/docs/library_sessionoptions
string TlsClientCertificatePath
Full path to TLS/SSL client certificate.

TypeName: WinSCP.SessionOptions

Name MemberType Definition
---- ---------- ----------
AddRawSettings Method void AddRawSettings(string setting, string value)
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ParseUrl Method void ParseUrl(string url)
ToString Method string ToString()
FtpMode Property WinSCP.FtpMode FtpMode {get;set;}
FtpSecure Property WinSCP.FtpSecure FtpSecure {get;set;}
GiveUpSecurityAndAcceptAnySshHostKey Property bool GiveUpSecurityAndAcceptAnySshHostKey {get;set;}
GiveUpSecurityAndAcceptAnyTlsHostCertificate Property bool GiveUpSecurityAndAcceptAnyTlsHostCertificate {get;set;}
HostName Property string HostName {get;set;}
Password Property string Password {get;set;}
PortNumber Property int PortNumber {get;set;}
Protocol Property WinSCP.Protocol Protocol {get;set;}
SecurePassword Property securestring SecurePassword {get;set;}
SshHostKeyFingerprint Property string SshHostKeyFingerprint {get;set;}
SshPrivateKeyPassphrase Property string SshPrivateKeyPassphrase {get;set;}
SshPrivateKeyPath Property string SshPrivateKeyPath {get;set;}
Timeout Property timespan Timeout {get;set;}
TimeoutInMilliseconds Property int TimeoutInMilliseconds {get;set;}
TlsHostCertificateFingerprint Property string TlsHostCertificateFingerprint {get;set;}
UserName Property string UserName {get;set;}
WebdavRoot Property string WebdavRoot {get;set;}
WebdavSecure Property bool WebdavSecure {get;set;} :?: :?: :?: