小飛兔使用 Windows 操作系統提供的一個安全套接字協議,裏面包含有https證書使用的加解密API,當遇到windows系統沒有的加密API時,就會報這個錯誤。
windows7 和 windows server 2008 R2,支持到TLS1.0版本。Windows 10 版本 21H2 和 Windows Server 2019,支持到TLS1.2版本。Windows 11 和 Windows Server 2022,支持到TLS1.3版本。詳細文檔
如果windows 11遇到TLS1.3還報錯誤,在
Windows PowerShell執行以下代碼,輸出當前系統支持的所有安全協議類型:
Add-Type -AssemblyName System.ServiceModel [System.Enum]::GetNames([System.Net.SecurityProtocolType])
查看當前安全協議和設置安全協議
[Net.ServicePointManager]::SecurityProtocol [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Ssl3 -bor [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13
爲什麽chrome/edge能運行在windows7/windows 2008系統呢?
爲什麽小飛兔不内置加解密API呢?
