鍍金池/ 問答/Linux  HTML/ MarkdownPad2不能用Github在線樣式渲染,提示:“請求被中止: 未

MarkdownPad2不能用Github在線樣式渲染,提示:“請求被中止: 未能創(chuàng)建 SSL/TLS 安全通道”

MarkdownPad2不能用Github在線樣式渲染,
只知道MarkdownPad調(diào)用的是https://api.github.com/這個AP...,之前還好好的,現(xiàn)在全部不能用,換了好幾臺電腦都不行。
用Github的風格之后,預覽界面就會提示:
“請求被中止: 未能創(chuàng)建 SSL/TLS 安全通道”

回答
編輯回答
葬愛

see this thread for how to work around this:
GFM online mode SSL/TLS secure channel aborts

my understanding is that MDP2 is built with .NET Framework v4.0, which doesn't support TLS 1.2 or use it by default.

but if you have .NET Framework 4.5 installed, you can update some registry settings and restart MDP2 and GitHub Flavoured Markdown Online starts working again

Make the following changes in your Registry and it should work:

1.) .NET Framework strong cryptography registry keys

[HKEY_LOCAL_MACHINESOFTWAREMicrosoft.NETFrameworkv4.0.30319]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoft.NETFrameworkv4.0.30319]
"SchUseStrongCrypto"=dword:00000001
2.) Secure Channel (Schannel) TLS 1.2 registry keys

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSecurityProvidersSCHANNELProtocolsTLS 1.2]

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSecurityProvidersSCHANNELProtocolsTLS 1.2Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSecurityProvidersSCHANNELProtocolsTLS 1.2Server]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001

2018年5月6日 08:18