Skip to content

Commit c65a3af

Browse files
wtayyebtahajahangir
authored andcommitted
use remote-cert-tls instead of depricated ns-cert-type
1 parent c08795a commit c65a3af

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

templates/client.conf.j2

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ key {{client}}.key
6363
# Verify server certificate by checking that the certicate has the nsCertType
6464
# field set to "server". This is an important precaution to protect against a
6565
# potential attack discussed here: http://openvpn.net/howto.html#mitm
66-
#
67-
# To use this feature, you will need to generate your server certificates with
68-
# the nsCertType field set to "server". The build-key-server script in the
69-
# easy-rsa folder will do this.
70-
ns-cert-type server
66+
67+
remote-cert-tls server
7168

7269
{% if openvpn_tls_auth and not openvpn_unified_client_profiles -%}
7370
# Use a static pre-shared key (PSK)

0 commit comments

Comments
 (0)