From 6556e9372ca5ac35add7244955fe5b5a1140fc9b Mon Sep 17 00:00:00 2001 From: xumia Date: Sat, 3 Dec 2022 03:51:32 +0000 Subject: [PATCH] Fix the wrong client config when the certificate contains END string --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 64d8ed0..4bdc587 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1125,7 +1125,7 @@ function newClient() { echo "" echo "" - awk '/BEGIN/,/END/' "/etc/openvpn/easy-rsa/pki/issued/$CLIENT.crt" + awk '/BEGIN/,/END CERTIFICATE/' "/etc/openvpn/easy-rsa/pki/issued/$CLIENT.crt" echo "" echo ""