Let's encrypt. When using NGINX, Not working automatic renewal.

Let's encrypt. When using NGINX, Not working automatic renewal.

IF using Apache, it working correctly.

CentOS6.8.

Vertualmin 5.05

Of course, I entered "1" in the fields of 「Months between automatic renewal」

Comments

If using apache, it is working correctly in Virtualmin 5.05.

BUT, if using NGINX, it is not working in Virtualmin 5.05.

So requesting a new cert works, but renewing fails?

Yes it is.

Using nginx,

It is working correctly to request a new cert.

But not working automatically renewing,

※Of course, I entered "1" in the fields of 「Months between automatic renewal」

So requesting a new cert works, but renewing fails?

Yes it is.

Using nginx,

It is working correctly to request a new cert.

But not working automatically renewing,

※Of course, I entered "1" in the fields of 「Months between automatic renewal」

YES!

We're about to release version 5.06 of Virtualmin plus an update to the Nginx plugin which should fix this.

thanks, waiting for the release.

Thank you, I'm waiting for the release.

I think this should fix you problem:

in file /usr/share/webmin/virtual-server/feature-ssl.pl please change line 1975 from

next if (!$d->{'ssl'} || !$d->{'letsencrypt_renew'});

to

next if (!&domain_has_ssl($d) || !$d->{'letsencrypt_renew'});

Is it posible that this issue is stil open? Certs still does not get renewed automaticaly...

My Setup: Ubuntu 16.04 Installe Versions:

root@server01:/etc# apt-show-versions webmin-virtual-server webmin webmin-virtualmin-nginx webmin-virtualmin-nginx-ssl nginx
nginx:amd64/xenial 1.12.1-1~xenial uptodate
webmin:all/virtualmin-universal 1.850 uptodate
webmin-virtual-server:all/virtualmin-universal 5.99.gpl uptodate
webmin-virtualmin-nginx:all/virtualmin-universal 2.2 uptodate
webmin-virtualmin-nginx-ssl:all/virtualmin-universal 1.5 uptodate

This will be fixed in the 6.00 release.