I received this email:
"
Hello,
Your certificate (or certificates) for the names listed below will expire in 20 days (on 08 Aug 19 09:50 +0000). Please make sure to renew your certificate before then, or visitors to your website will encounter errors.
We recommend renewing certificates automatically when they have a third of their
total lifetime left. For Let’s Encrypt’s current 90-day certificates, that means
renewing 30 days before expiration
ggc.world
www.ggc.world
"
The version of my client is :
Ubuntu 18.04.01
marco@pc01:~$ certbot --version
certbot 0.31.0
I tried to renew the certificates in this way:
marco@pc01:~$ sudo certbot renew -d ggc.world -d www.ggc.world
/etc/logrotate.d/certbot
usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: /etc/logrotate.d/certbot
In /etc/nginx/conf.d/default.conf file
server {
listen 443 http2 default_server;
server_name ggc.world www.ggc.world;
ssl on;
ssl_certificate /etc/ssl/certs/chained.pem;
ssl_certificate_key /etc/ssl/private/domain.key;
This is the content of /etc/cron.d/certbot :
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e
'sleep int(rand(43200))' && certbot -q renew
What’s the correct procedure to automatically renew the certificates?
Marco