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

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

Sending files over FTPS (secure) using WinSCP .NET assembly(使用 WinSCP .NET 程序集通過 FTPS(安全)發送文件)
本文介紹了使用 WinSCP .NET 程序集通過 FTPS(安全)發送文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

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

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

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

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

我已經能夠毫無問題地通過 FTP 和 SFTP 發送文件,但這整件事讓我無法理解.

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

推薦答案

如果你有 FTP 的代碼,你只需要添加一個連接到一個表現良好的 FTPS (FTP over TLS/SSL) 服務器就是設置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
}

<小時>

TlsHostCertificateFingerprint 僅在您的服務器證書未由受信任的機構簽署時才需要.


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

TlsClientCertificatePath 僅在您的服務器需要使用客戶端證書進行身份驗證時才需要.

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

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

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.

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

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

相關文檔推薦

ASP.NET Core authenticating with Azure Active Directory and persisting custom Claims across requests(ASP.NET Core 使用 Azure Active Directory 進行身份驗證并跨請求保留自定義聲明)
ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working(ASP.NET Core 2.0 Web API Azure Ad v2 令牌授權不起作用)
How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API(如何獲取守護進程或服務器到 C# ASP.NET Web API 的 Azure AD OAuth2 訪問令牌和刷新令牌) - IT屋-程序員軟件開發技
Azure KeyVault Active Directory AcquireTokenAsync timeout when called asynchronously(異步調用時 Azure KeyVault Active Directory AcquireTokenAsync 超時)
Getting access token using email address and app password from oauth2/token(使用電子郵件地址和應用程序密碼從 oauth2/token 獲取訪問令牌)
New Azure AD application doesn#39;t work until updated through management portal(新的 Azure AD 應用程序在通過管理門戶更新之前無法運行)
主站蜘蛛池模板: 亚洲狠狠爱 | 亚洲欧美日韩电影 | 亚洲一区二区中文字幕在线观看 | 久久伊人一区二区 | 国产亚洲精品91 | av永久| 综合亚洲视频 | 亚洲精品在线免费观看视频 | 一区二区在线免费观看 | 亚洲精久久久 | 欧美一级黄色片免费观看 | 国产精品99久久久久久久vr | 亚洲精品久久久久久久久久久 | 色综合天天天天做夜夜夜夜做 | 久久久精品一区 | 国产美女免费视频 | 欧美日韩国产精品激情在线播放 | 日本一二三区电影 | 欧美久久久久久 | 亚洲劲爆av| 在线观看成人 | 日韩精品一区二区三区 | 欧美成人hd | 第一区在线观看免费国语入口 | 亚洲欧美日韩系列 | 精品国产高清一区二区三区 | 一区二区电影 | 精品一区二区观看 | 蜜桃色网| 三区在线观看 | 日韩高清www | 免费精品| 人人干97| 日韩欧美亚洲 | 久久国产精品久久国产精品 | 综合久| 正在播放国产精品 | 日韩福利| 国产综合久久 | 天天插日日操 | 久久精品久久久久久 |