Topic "Client Certificates"

Author Message
dinosaurus
[View user's profile]

Joined: 2016-01-14
Posts: 2
Location: Netherlands
Hi,

I really like the .net assembly Rolling Eyes
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;} Question Question Question
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
The client certificates are supported in 5.8.x beta only.
https://winscp.net/tracker/show_bug.cgi?id=921

I've updated the documentation to make this clear.
dinosaurus
[View user's profile]

Joined: 2016-01-14
Posts: 2
Location: Netherlands
Hi,

Thanks for clearing that out.
Will test the beta and report if we see any flaws/bugs Neutral
profaned

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License