久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用 WinSCP .NET 程序集通過(guò) FTPS(安全)發(fā)送文件

Sending files over FTPS (secure) using WinSCP .NET assembly(使用 WinSCP .NET 程序集通過(guò) FTPS(安全)發(fā)送文件)
本文介紹了使用 WinSCP .NET 程序集通過(guò) FTPS(安全)發(fā)送文件的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

限時(shí)送ChatGPT賬號(hào)..

使用 FTPS(安全)將文件發(fā)送到帶有 WinSCP(.NET 程序集)的服務(wù)器需要什么?

What is required to send out files to a server with WinSCP (.NET assembly) using FTPS (Secure)?

我一直在查看他們的文檔,但對(duì) TlsHostCertificateFingerprintTlsClientCertificatePath 等某些方面并不是很清楚.

I've been looking at their documentation and am not really clear on certain aspects like TlsHostCertificateFingerprint or TlsClientCertificatePath.

我已經(jīng)能夠毫無(wú)問(wèn)題地通過(guò) FTP 和 SFTP 發(fā)送文件,但這整件事讓我無(wú)法理解.

I've been able to send out files via FTP and SFTP with no problem, but this whole thing just eludes me.

推薦答案

如果你有 FTP 的代碼,你只需要添加一個(gè)連接到一個(gè)表現(xiàn)良好的 FTPS (FTP over TLS/SSL) 服務(wù)器就是設(shè)置SessionOptions.FtpSecure:

If you have a code for FTP, all you need to add to connect to a well-behaved FTPS (FTP over TLS/SSL) server is to set the SessionOptions.FtpSecure:

// Set up session options
SessionOptions sessionOptions = new SessionOptions
{
    Protocol = Protocol.Ftp,
    HostName = "ftp.example.com",
    UserName = "username",
    Password = "password",
    // Enable FTPS in explicit mode, aka FTPES
    FtpSecure = FtpSecure.Explicit,
};

using (Session session = new Session())
{
    // Connect
    session.Open(sessionOptions);

    // Your code
}

<小時(shí)>

TlsHostCertificateFingerprint 僅在您的服務(wù)器證書(shū)未由受信任的機(jī)構(gòu)簽署時(shí)才需要.


The TlsHostCertificateFingerprint is needed only, if your server certificate is not signed by a trusted authority.

TlsClientCertificatePath 僅在您的服務(wù)器需要使用客戶端證書(shū)進(jìn)行身份驗(yàn)證時(shí)才需要.

The TlsClientCertificatePath is needed only, if your server requires authenticating with a client certificate.

最簡(jiǎn)單的方法是在 WinSCP GUI 中配置您的會(huì)話 并擁有它為您生成代碼模板.這就是我得到上述代碼的方式.

Easiest is to configure your session in WinSCP GUI and have it generate a code template for you. That's actually how I got the above code.

這篇關(guān)于使用 WinSCP .NET 程序集通過(guò) FTPS(安全)發(fā)送文件的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

ASP.NET Core authenticating with Azure Active Directory and persisting custom Claims across requests(ASP.NET Core 使用 Azure Active Directory 進(jìn)行身份驗(yàn)證并跨請(qǐng)求保留自定義聲明)
ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working(ASP.NET Core 2.0 Web API Azure Ad v2 令牌授權(quán)不起作用)
How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API(如何獲取守護(hù)進(jìn)程或服務(wù)器到 C# ASP.NET Web API 的 Azure AD OAuth2 訪問(wèn)令牌和刷新令牌) - IT屋-程序員軟件開(kāi)發(fā)技
Azure KeyVault Active Directory AcquireTokenAsync timeout when called asynchronously(異步調(diào)用時(shí) Azure KeyVault Active Directory AcquireTokenAsync 超時(shí))
Getting access token using email address and app password from oauth2/token(使用電子郵件地址和應(yīng)用程序密碼從 oauth2/token 獲取訪問(wèn)令牌)
New Azure AD application doesn#39;t work until updated through management portal(新的 Azure AD 應(yīng)用程序在通過(guò)管理門戶更新之前無(wú)法運(yùn)行)
主站蜘蛛池模板: 毛片一级电影 | 国产一二区视频 | 91深夜福利视频 | 特级毛片 | 久久久久国产精品一区二区 | 国产情侣在线看 | 99视频在线 | av中文在线 | 4hu最新网址| 日韩一区二区在线观看视频 | 国产一级片免费在线观看 | 激情综合五月天 | 欧美理伦片在线播放 | 久久亚洲欧美日韩精品专区 | 一区二区在线观看av | 精品欧美一区免费观看α√ | 国产高清免费视频 | 日本精品免费在线观看 | 亚洲免费婷婷 | 久久99一区二区 | 青草青草久热精品视频在线观看 | 黄色片免费在线观看 | 伊人狠狠操 | 亚洲高清一区二区三区 | 深夜爽视频| 国产欧美日韩视频 | 久久亚洲国产精品日日av夜夜 | 精品欧美一区二区三区久久久 | 毛片国产 | 天天拍天天操 | 亚洲精品久久久久久久久久久 | 久久精品中文字幕 | 国产欧美在线一区 | www.久久| 国产乱精品一区二区三区 | 久久久91精品国产一区二区三区 | 国产欧美日韩综合精品一区二区 | 日本久久久久久久久 | 久久综合久色欧美综合狠狠 | 一区二区三区在线免费观看视频 | 久久99精品久久久水蜜桃 |