【應用中心】金流FAQ 如何設定 .NET Framework 支援 TLS 1.2 - 客服中心 - 歐付寶討論版
請選擇 進入手機版 | 繼續訪問電腦版

歐付寶討論版

查詢
查看: 4906|回覆: 0

[應用中心] 【應用中心】金流FAQ 如何設定 .NET Framework 支援 TLS 1.2

[複製連結]
歐付寶官方管理員
發表於 2018-7-13 16:12:23 | 顯示全部樓層 |閱讀模式
3.5.1或以下版本,無法支援,建議更新版本至4.6以上版本


如為4.0版本,無法支援,請額外安裝4.5.2以上之版本,並參考以下範例修改,程式修改或系統機碼設定擇一即可
程式修改參考:
ServicePointManager.SecurityProtocol = (SecurityProtocolType)768 | (SecurityProtocolType)3072;
系統機碼設定參考:



如為.Net Framework4.5.2版本,請參考以下範例修改,程式修改或系統機碼設定擇一即可
程式修改參考:
//Creating the Web Request.
HttpWebRequest httpWebRequest = null;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;      
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(AcceptAllCertifications);
httpWebRequest = WebRequest.Create(requestUrl) as HttpWebRequest;
httpWebRequest.ProtocolVersion = HttpVersion.Version10;
系統機碼設定參考:



如為4.6版本以上版本無須修改

GMT+8, 2024-4-18 21:14 , Processed in 0.136641 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回覆 返回頂部 返回列表