2020年2月18日 星期二

指定 TLS 伺服器預設的 Diffie-hellman Helman 金鑰位長度,請建立ServerMinKeyBitLength

reg add "HKey_Local_Machine\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\Diffie-Hellman" /f /v ServerMinKeyBitLength /t REG_DWORD /d 0x00000800
使用命令提示字元執行
需要最高管理者權限
view raw gistfile1.txt hosted with ❤ by GitHub

解釋:
DWORD是Unsigned integer (32-bit),0x00000800就是2048位元,1024被認為不安全

REF:
https://docs.microsoft.com/zh-tw/windows-server/security/tls/tls-registry-settings
https://thycotic.force.com/support/s/article/TLS-Diffie-Hellman-Hardening
KB3174644
https://docs.microsoft.com/en-us/security-updates/SecurityAdvisories/2016/3174644
Weak Diffie-Hellman and the Logjam Attack
https://weakdh.org

沒有留言:

張貼留言