mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
autorenew LetsEncrypt SSL
This commit is contained in:
parent
7df680ae83
commit
da6ed8057f
2 changed files with 10 additions and 3 deletions
|
@ -30,10 +30,9 @@ for user in $users; do
|
|||
USER_DATA=$VESTA/data/users/$user
|
||||
# Checking user certificates
|
||||
for domain in $(search_objects 'web' 'LETSENCRYPT' 'yes' 'DOMAIN'); do
|
||||
crt="$VESTA/data/users/$user/ssl/$domain.crt"
|
||||
# Checking certificate issuer
|
||||
crt_data=$(openssl x509 -text -in "$crt")
|
||||
|
||||
crt="$VESTA/data/users/$user/ssl/$domain.crt"
|
||||
crt_data=$(openssl x509 -text -in "$crt")
|
||||
expire=$(echo "$crt_data" |grep "Not After")
|
||||
expire=$(echo "$expire" |cut -f 2,3,4 -d :)
|
||||
expire=$(date -d "$expire" +%s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue