1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-12-22 14:58:54 +00:00

Fix the wrong client config when the certificate contains END string (#1067)

This commit is contained in:
xumia 2023-01-03 21:06:59 +08:00 committed by GitHub
parent 8e427ee9c2
commit 039ebaafe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1125,7 +1125,7 @@ function newClient() {
echo "</ca>" echo "</ca>"
echo "<cert>" echo "<cert>"
awk '/BEGIN/,/END/' "/etc/openvpn/easy-rsa/pki/issued/$CLIENT.crt" awk '/BEGIN/,/END CERTIFICATE/' "/etc/openvpn/easy-rsa/pki/issued/$CLIENT.crt"
echo "</cert>" echo "</cert>"
echo "<key>" echo "<key>"