Certificate renew error

Hi,

I am trying to renew SSL of one of my site https://www.testing.lamha.link/

I am on Ubuntu 20.04.5 LTS on AWS

I ran the command sudo certbot renew
But got the below error:-

How to fix this?

Thanks!

1 Like

Just guessing but I'd say look at your conf file, find a ] then figure out if it should really be there.

3 Likes

I thought so too, but I find the .conf.save extension(s) a little bit weird. Not sure where a .save file woul come from? Perhaps it's totally superfluous with a correct file named testing.lamha.link.conf without the .save?

3 Likes

They probably manually created it not realizing the impact. And, their include in nginx.conf probably is coded to take in everything from that folder like

include /etc/nginx/sites-enabled/*;
5 Likes

Yes!
That is one of the worst default include statements ever made.

It should have been:
include /etc/nginx/sites-enabled/*.conf;

Given: /sites-enabled/ should only contain symlinks.
But it is all too easy for someone to make a "mistake" and put other files there.

5 Likes

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