Skip to content

Commit ef7c164

Browse files
committed
Use tls-crypt instead of tls-auth
kylemanna#501
1 parent 89b9019 commit ef7c164

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/ovpn_genconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ key $EASYRSA_PKI/private/${OVPN_CN}.key
324324
ca $EASYRSA_PKI/ca.crt
325325
cert $EASYRSA_PKI/issued/${OVPN_CN}.crt
326326
dh $EASYRSA_PKI/dh.pem
327-
tls-auth $EASYRSA_PKI/ta.key
327+
tls-crypt $EASYRSA_PKI/ta.key
328328
key-direction 0
329329
keepalive $OVPN_KEEPALIVE
330330
persist-key

bin/ovpn_getclient

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ $(openssl x509 -in $EASYRSA_PKI/issued/${cn}.crt)
5959
$(cat $EASYRSA_PKI/ca.crt)
6060
</ca>
6161
key-direction 1
62-
<tls-auth>
62+
<tls-crypt>
6363
$(cat $EASYRSA_PKI/ta.key)
64-
</tls-auth>
64+
</tls-crypt>
6565
"
6666
elif [ "$mode" == "separated" ]; then
6767
echo "
6868
key ${cn}.key
6969
ca ca.crt
7070
cert ${cn}.crt
71-
tls-auth ta.key 1
71+
tls-crypt ta.key 1
7272
"
7373
fi
7474

0 commit comments

Comments
 (0)