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 "<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 "<key>"