Update v-list-web-domain-ssl

Adding certificate support from CloudFlare
This commit is contained in:
Krzysztof Grzelak 2019-07-11 21:30:00 +02:00 committed by GitHub
parent f9c9ec6fed
commit a9ddd4159c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 )