大网数据广告活动
服务器运维问答

OpenVPN disabling DH

· 52CE 我爱测

I'm reading this tutorial on how to setup and configure an OpenVPN server. I noticed something which I've not seen anywhere else: ;dh dh2048.pem dh none Why DH is disabled? What are the pros and cons? In case it matters here's th…

问题原文

原帖链接 · Omid Shojaee · CC BY-SA 4.0

I'm reading this tutorial on how to setup and configure an OpenVPN server. I noticed something which I've not seen anywhere else:

;dh dh2048.pem
dh none

Why DH is disabled? What are the pros and cons?

In case it matters here's the rest of the configuration related to cryptography:

tls-crypt ta.key
cipher AES-256-GCM
auth SHA512

已采纳解答

原帖链接 · Grant · CC BY-SA 4.0

They answer it right in the guide:

Next, find the line containing a dh directive, which defines Diffie-Hellman parameters. Since we’ve configured all the certificates to use Elliptic Curve Cryptography, there is no need for a Diffie-Hellman seed file.

OpenVPN's manual says something similar:

--dh file File containing Diffie Hellman parameters in .pem format (required for --tls-server only).Set file=none to disable Diffie Hellman key exchange (and use ECDH only). Note that this requires peers to be using an SSL library that supports ECDH TLS cipher suites (e.g. OpenSSL 1.0.1+, or mbed TLS 2.0+).

For the type of certificates that guide is telling you to use, the Diffie-Hellman parameters aren't needed.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-07-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。