From 039ebaafe1ab862b9a362df3456b57d25cac961e Mon Sep 17 00:00:00 2001
From: xumia <59720581+xumia@users.noreply.github.com>
Date: Tue, 3 Jan 2023 21:06:59 +0800
Subject: [PATCH] Fix the wrong client config when the certificate contains END
string (#1067)
---
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 ""