Error renewing SSL

Yes
root@online:~# ls -lrht /etc/letsencrypt/live/online.cdiu.university-12-31-2020
total 4.0K
-rw-r--r-- 1 root root 692 Oct 8 12:43 README
lrwxrwxrwx 1 root root 54 Jan 1 00:59 privkey.pem -> ../../archive/online.cdiu.university-0001/privkey1.pem
lrwxrwxrwx 1 root root 56 Jan 1 00:59 fullchain.pem -> ../../archive/online.cdiu.university-0001/fullchain1.pem
lrwxrwxrwx 1 root root 52 Jan 1 00:59 chain.pem -> ../../archive/online.cdiu.university-0001/chain1.pem
lrwxrwxrwx 1 root root 51 Jan 1 00:59 cert.pem -> ../../archive/online.cdiu.university-0001/cert1.pem
root@online:~#

1 Like

Since we know that your certificate acquisition process works (I can already see the new certificate on crt.sh), we can safely straighten things out...

Please show the outputs of running these...

certbot delete online.cdiu.university-12-31-2020
certbot delete online.cdiu.university
certbot delete online.cdiu.university-0001
certbot delete online.cdiu.university-0002
certbot delete online.cdiu.university-0003

You won't lose anything of value by running those since you're using manual authentication and no installer.

1 Like

root@online:/etc/letsencrypt/live# certbot delete online.cdiu.university-12-31-2020
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: online.cdiu.university-12-31-2020
root@online:/etc/letsencrypt/live# certbot delete online.cdiu.university
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: online.cdiu.university

1 Like

My fault...

certbot delete --cert-name online.cdiu.university-12-31-2020

certbot delete --cert-name online.cdiu.university

certbot delete --cert-name online.cdiu.university-0001

certbot delete --cert-name online.cdiu.university-0002

certbot delete --cert-name online.cdiu.university-0003

1 Like

root@online:/etc/letsencrypt/live# certbot delete --cert-name online.cdiu.university-12-31-2020
Saving debug log to /var/log/letsencrypt/letsencrypt.log
No certificate found with name online.cdiu.university-12-31-2020 (expected /etc/letsencrypt/renewal/online.cdiu.university-12-31-2020.conf).
root@online:/etc/letsencrypt/live# certbot delete --cert-name online.cdiu.university
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Deleted all files relating to certificate online.cdiu.university.


root@online:/etc/letsencrypt/live# certbot delete --cert-name online.cdiu.university-0001
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Deleted all files relating to certificate online.cdiu.university-0001.


root@online:/etc/letsencrypt/live# certbot delete --cert-name online.cdiu.university-0002
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Deleted all files relating to certificate online.cdiu.university-0002.


root@online:/etc/letsencrypt/live# certbot delete --cert-name online.cdiu.university-0003
Saving debug log to /var/log/letsencrypt/letsencrypt.log
No certificate found with name online.cdiu.university-0003 (expected /etc/letsencrypt/renewal/online.cdiu.university-0003.conf).
root@online:/etc/letsencrypt/live#

1 Like

Go ahead and manually remove /etc/letsencrypt/live/online.cdiu.university-12-31-2020 then let's see...

ls -l /etc/letsencrypt/live

ls -l /etc/letsencrypt/archive

ls -l /etc/letsencrypt/renewal

1 Like

root@online:/etc/letsencrypt/live# rm -Rf online.cdiu.university-12-31-2020
root@online:/etc/letsencrypt/live# ls -l /etc/letsencrypt/live
total 12
drwxr-xr-x 2 root root 4096 Jul 9 02:43 ORIG-online.cdiu.university
-rw-r--r-- 1 root root 740 Jul 9 02:43 README
drwxr-xr-x 2 root root 4096 Oct 8 12:43 online.cdiu.university-0001-ORIG-renewed
root@online:/etc/letsencrypt/live# ls -l /etc/letsencrypt/archive
total 0
root@online:/etc/letsencrypt/live# ls -l /etc/letsencrypt/renewal
total 0
root@online:/etc/letsencrypt/live#

1 Like

Go ahead and remove these from the live folder too:

ORIG-online.cdiu.university

online.cdiu.university-0001-ORIG-renewed

1 Like

root@online:/etc/letsencrypt/live# rm -Rf ORIG-online.cdiu.university
root@online:/etc/letsencrypt/live# rm -Rf online.cdiu.university-0001-ORIG-renewed
root@online:/etc/letsencrypt/live# ls -lrht
total 4.0K
-rw-r--r-- 1 root root 740 Jul 9 02:43 README

1 Like

Nice. Now... :crossed_fingers:

certbot certonly --manual -d "online.cdiu.university,www.online.cdiu.university"

1 Like

root@online:/etc/letsencrypt/live# certbot certonly --manual -d "online.cdiu.university,www.online.cdiu.university"
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Obtaining a new certificate

IMPORTANT NOTES:

  • Congratulations! Your certificate and chain have been saved at:
    /etc/letsencrypt/live/online.cdiu.university/fullchain.pem
    Your key file has been saved at:
    /etc/letsencrypt/live/online.cdiu.university/privkey.pem
    Your cert will expire on 2021-04-01. To obtain a new or tweaked
    version of this certificate in the future, simply run certbot
    again. To non-interactively renew all of your certificates, run
    "certbot renew"

  • If you like Certbot, please consider supporting our work by:

    Donating to ISRG / Let's Encrypt: Donate - Let's Encrypt
    Donating to EFF: Support EFF's Work on Let's Encrypt | Electronic Frontier Foundation

root@online:/etc/letsencrypt/live#

1 Like

Beautiful! :smiley:

Now... :crossed_fingers:

nginx -s reload

1 Like

OMG....................... This is great it works :slight_smile:
root@online:/etc/letsencrypt/live# nginx -s reload
nginx: [warn] conflicting server name "online.cdiu.university" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "www.online.cdiu.university" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name ".online.cdiu.university" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "online.cdiu.university" on [::]:80, ignored
nginx: [warn] conflicting server name "www.online.cdiu.university" on [::]:80, ignored
nginx: [warn] conflicting server name "
.online.cdiu.university" on [::]:80, ignored
nginx: [warn] conflicting server name "online.cdiu.university" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "www.online.cdiu.university" on 0.0.0.0:443, ignored
nginx: [warn] conflicting server name "online.cdiu.university" on [::]:443, ignored
nginx: [warn] conflicting server name "www.online.cdiu.university" on [::]:443, ignored
root@online:/etc/letsencrypt/live#

2 Likes

I see great things!

:partying_face:

1 Like

Thank you very.... very much

1 Like

so to renew what should I do? in 2 months?

2 Likes

Yep. Around 60 days should do it. Use this when you do though...

certbot certonly --manual -d "online.cdiu.university,www.online.cdiu.university"

1 Like

Have a Happy New Year!

:slightly_smiling_face:

1 Like

Happy new year to you too. This was my celebration fixing this issue

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.