Auto renew SSL doesn't work

Questions regarding the Command Line Interface
CLI
vesta_mtl
Posts: 33
Joined: Wed Dec 21, 2016 2:08 pm

Auto renew SSL doesn't work

Postby vesta_mtl » Sat Mar 11, 2017 9:31 pm

Hello all,

I have a domain where the SSL will expire in 24 hours. I recently migrated it to this server, so I understand that Vesta didn't auto-renew it yet.

But if I try to manually trigger the auto renew now using v-update-letsencrypt-ssl, it does nothing (immediately returns to the prompt with no error, and doesn't update the SSL).

Looking at the code for v-update-letsencrypt-ssl, I see it should loop through each user, and then check the expiration date of any domains, and if <31, trigger this:

Code: Select all

v-add-letsencrypt-domain $user $domain $aliases


I can confirm that the user exists by running this:

Code: Select all

v-list-users


I can confirm that the SSL is attributed to this user and expiring tomorrow by running this:

Code: Select all

openssl x509 -enddate -noout -in /usr/local/vesta/data/users/my_user/ssl/my_user_domain.com.pem


So I am not sure why v-update-letsencrypt-ssl is not handling this as designed and renewing the SSL for the domain.

Thanks in advance, and thank you for this excellent Control Panel.

skurudo
VestaCP Team
Posts: 7798
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Auto renew SSL doesn't work

Postby skurudo » Sat Mar 11, 2017 10:05 pm

Code: Select all

I have a domain where the SSL will expire in 24 hours. I recently migrated it to this server, so I understand that Vesta didn't auto-renew it yet.


Domain with LE certificate and this certificate expire soon? Correct?
And there is no domains with LE certificates?

PS: I suggest disable SSL support and enable again.
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

vesta_mtl
Posts: 33
Joined: Wed Dec 21, 2016 2:08 pm

Re: Auto renew SSL doesn't work

Postby vesta_mtl » Sat Mar 11, 2017 11:53 pm

Yes that is correct.

Your PS suggestion would just recreate the SSL, right? This is equivalent to just doing v-add-letsencrypt-domain. Yes this would probably work. But before doing that I prefer to understand why the update doesn't work.

Thanks.

vesta_mtl
Posts: 33
Joined: Wed Dec 21, 2016 2:08 pm

Re: Auto renew SSL doesn't work

Postby vesta_mtl » Sun Mar 12, 2017 2:28 pm

This problem is resolved, I think the issue was that when I migrated the website, "Let's Encrypt Support" was not checked. And so that is why it wasn't updating it automatically. I just unchecked and then re-checked SSL support (with "Let's Encrypt Support" checked) and it re-issued a new Let's Encrypt SSL certificate. Thanks for the help and the great tool.

locus
Posts: 54
Joined: Thu May 05, 2016 6:43 am

Re: Auto renew SSL doesn't work

Postby locus » Mon Mar 13, 2017 7:30 am

Others have this issue including me, no migration involved.
End result is you have to disable and re-enable LE for every domain to renew the cert.

Lets hope there is a fix coming :)

vesta_mtl
Posts: 33
Joined: Wed Dec 21, 2016 2:08 pm

Re: Auto renew SSL doesn't work

Postby vesta_mtl » Mon Mar 13, 2017 11:56 am

I'll report back on May 7th when many of my sites will have entered the 31-day window and should theoretically be auto-renewed by Vesta.

skurudo
VestaCP Team
Posts: 7798
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Auto renew SSL doesn't work

Postby skurudo » Wed Mar 15, 2017 6:39 am

Ok, let's wait update and see, bug or not ;-)
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

vesta_mtl
Posts: 33
Joined: Wed Dec 21, 2016 2:08 pm

Re: Auto renew SSL doesn't work

Postby vesta_mtl » Wed Mar 15, 2017 4:38 pm

Sounds good! I must say again how much I like Vesta CP, it works extremely well, the backups are an amazing tool and I can easily restore entire sites in no time.

I configured dropbox uploader to send the latest backup for each hosted website to my Dropbox account every night. If I wanted to share this code with the community, where should I post it?

Thanks again.

skurudo
VestaCP Team
Posts: 7798
Joined: Fri Dec 26, 2014 2:23 pm
Location: Moscow
Contact:

Re: Auto renew SSL doesn't work

Postby skurudo » Thu Mar 16, 2017 1:22 pm

vesta_mtl wrote:I configured dropbox uploader to send the latest backup for each hosted website to my Dropbox account every night. If I wanted to share this code with the community, where should I post it?


I think it's 3rd party -> viewforum.php?f=19

PS: Thanks for nice words ;-)
-> DigitalOcean competition - please, support us
-> fix for phpmyadmin - nice and sweet now

vesta_mtl
Posts: 33
Joined: Wed Dec 21, 2016 2:08 pm

Re: Auto renew SSL doesn't work

Postby vesta_mtl » Fri Mar 17, 2017 2:50 pm

Thanks. I have posted the tutorial here: viewtopic.php?f=19&t=14123


Return to “CLI”



Who is online

Users browsing this forum: No registered users and 4 guests

cron