Skip to content

Commit 2d73540

Browse files
committed
Remove use of 'dh dh2048.pem' from sample configs, remove 'dh2048.pem' file
Since commit bd9aa06 (Jan 2015) OpenVPN has allowed to use '--dh none' to disable traditional Diffie Hellman, since more secure ECDH algorithms are available that do not use explicit DH parameters. If configured with a suffiently high securelevel (3+), or if running in FIPS mode, OpenSSL 3.5 will refuse 2048 bit DH files, making our tests fail. Thus, remove all the DH2048 stuff from our sample configs. Github: triggered by #819 Change-Id: If66438662bd862a195b2a69c4fa45f63838982b7 Signed-off-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20250820175459.11227-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg32632.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
1 parent 72a0e6f commit 2d73540

File tree

5 files changed

+4
-17
lines changed

5 files changed

+4
-17
lines changed

doc/tests/authentication-plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To build the needed authentication plug-in, run:
3636
verb 4
3737
dev tun
3838
server 10.8.0.0 255.255.255.0
39-
dh sample/sample-keys/dh2048.pem
39+
dh none
4040
ca sample/sample-keys/ca.crt
4141
cert sample/sample-keys/server.crt
4242
key sample/sample-keys/server.key

sample/sample-config-files/loopback-server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dev null
1717
verb 3
1818
reneg-sec 10
1919
tls-server
20-
dh sample-keys/dh2048.pem
20+
dh none
2121
ca sample-keys/ca.crt
2222
key sample-keys/server.key
2323
cert sample-keys/server.crt

sample/sample-config-files/server.conf

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,6 @@ ca ca.crt
8787
cert server.crt
8888
key server.key # This file should be kept secret
8989

90-
# Diffie hellman parameters.
91-
# Generate your own with:
92-
# openssl dhparam -out dh2048.pem 2048
93-
dh dh2048.pem
94-
9590
# Allow to connect to really old OpenVPN versions
9691
# without AEAD support (OpenVPN 2.3.x or older)
9792
# This adds AES-256-CBC as fallback cipher and
@@ -306,4 +301,4 @@ verb 3
306301

307302
# Notify the client that when the server restarts so it
308303
# can automatically reconnect.
309-
explicit-exit-notify 1
304+
explicit-exit-notify 1

sample/sample-keys/dh2048.pem

Lines changed: 0 additions & 8 deletions
This file was deleted.

sample/sample-plugins/keying-material-exporter-demo/server.ovpn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugin ./keyingmaterialexporter.so
88
ca ../../sample-keys/ca.crt
99
cert ../../sample-keys/server.crt
1010
key ../../sample-keys/server.key
11-
dh ../../sample-keys/dh2048.pem
11+
dh none
1212

1313
server 10.8.0.0 255.255.255.0
1414
port 1194

0 commit comments

Comments
 (0)