From a9ddd4159c1bdf698855123d68ba8fa85f19cc4f Mon Sep 17 00:00:00 2001 From: Krzysztof Grzelak <51724541+kgrzelak@users.noreply.github.com> Date: Thu, 11 Jul 2019 21:30:00 +0200 Subject: [PATCH] Update v-list-web-domain-ssl Adding certificate support from CloudFlare --- bin/v-list-web-domain-ssl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-list-web-domain-ssl b/bin/v-list-web-domain-ssl index 99fd5cf8b..0aed7e278 100755 --- a/bin/v-list-web-domain-ssl +++ b/bin/v-list-web-domain-ssl @@ -111,7 +111,7 @@ if [ -e "$USER_DATA/ssl/$domain.crt" ]; then crt=$(cat $USER_DATA/ssl/$domain.crt |sed ':a;N;$!ba;s/\n/\\n/g') info=$(openssl x509 -text -in $USER_DATA/ssl/$domain.crt) - subj=$(echo "$info" |grep Subject: |cut -f 2 -d =) + subj=$(echo "$info" |grep Subject: |cut -f 2 -d =|cut -f 2 -d \") before=$(echo "$info" |grep Before: |sed -e "s/.*Before: //") after=$(echo "$info" |grep "After :" |sed -e "s/.*After : //") signature=$(echo "$info" |grep "Algorithm:" |head -n1 )