New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force renew certificate #1732

Closed
pdapnz opened this Issue Oct 24, 2018 · 5 comments

Comments

Projects
None yet
2 participants
@pdapnz

pdapnz commented Oct 24, 2018

Is it possible add force option into v-update-letsencrypt-ssl to renew all certificates independent of they expire date?

The problem is - I add new alias to domain I must renew certificate. And today it is only possible by disable/enable SSL at domain page of panel. During this procedure site go offline while new certifacate will be issued. In my case alias count is over 80 and renew process takes 5-10 minutes. During this time site offline.

https://github.com/serghey-rodin/vesta/blob/master/bin/v-update-letsencrypt-ssl#L44

@pdapnz

This comment has been minimized.

pdapnz commented Oct 24, 2018

Did the following test. I comment expiration check. The certificate has been re-issued, but there are no new aliases in it, they have not been added. So the fource option will not solve the problem.

Is any ideas how solve such problem?

@madeITBelgium

This comment has been minimized.

Collaborator

madeITBelgium commented Oct 24, 2018

The v-update-letsencrypt-ssl command uses the aliases from the certificate.

Run this command: v-add-letsencrypt-domain

@pdapnz

This comment has been minimized.

pdapnz commented Oct 24, 2018

So I simply can run the following command:

v-add-letsencrypt-domain username site.com newsubdomain.site.com

or I must pass all aliases?

@madeITBelgium

This comment has been minimized.

Collaborator

madeITBelgium commented Oct 24, 2018

I think all aliases. Comma separated.
ex:

v-add-letsencrypt-domain username site.com newsubdomain.site.com,www.site.com,www1.site.com,sub1.site.com

Example code: https://github.com/serghey-rodin/vesta/blob/master/web/edit/web/index.php#L369-L370

@pdapnz

This comment has been minimized.

pdapnz commented Oct 25, 2018

Thank you!
v-add-letsencrypt-domain solved my problem!

@pdapnz pdapnz closed this Oct 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment