Browse Source

Merge branch 'develop' of https://github.com/hestiacp/hestiacp into develop

Kristan Kenney 6 years ago
parent
commit
d8bbc2071c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-list-web-domain-ssl

+ 1 - 1
bin/v-list-web-domain-ssl

@@ -117,7 +117,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: |sed -e "s/\"//g" -e "s/.*= //")
     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 )