Explorar o código

Update v-list-web-domain-ssl

Adding certificate support from CloudFlare
Krzysztof Grzelak %!s(int64=6) %!d(string=hai) anos
pai
achega
a9ddd4159c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/v-list-web-domain-ssl

+ 1 - 1
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 )