How can I redo my certification?

Hi, I got a lots of questions here...
I was trying to remove all the snapd and certbot and letsencrypt
(anythings I can think of) and install certbot all over again.But it just won't work. Because it seems a lots of problems so I want to redo everythings.
Could anyone help me out :woman_facepalming:
Thanks a lot!!

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: allmyloveyogurt.com

I ran this command: sudo certbot --apache -d allmyloveyogurt.com

It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log

Error while running apache2ctl configtest.

Action 'configtest' failed.

The Apache error log may have more information.

apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 14 of /etc/apache2/sites-enabled/allmyloveyogurt.com-le-ssl.conf: Could not open configuration file /etc/letsencrypt/options-ssl-apache.conf: No such file or directory

The apache plugin is not working; there may be problems with your existing configuration.

The error was: MisconfigurationError("Error while running apache2ctl configtest.\nAction 'configtest' failed.\nThe Apache error log may have more information.\n\napache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 14 of /etc/apache2/sites-enabled/allmyloveyogurt.com-le-ssl.conf: Could not open configuration file /etc/letsencrypt/options-ssl-apache.conf: No such file or directory\n")

My web server is (include version): Apache/2.4.38

The operating system my web server runs on is (include version): Debian 10

My hosting provider, if applicable, is: Linode

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no? I use terminal to manage my site

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): It used to be 0.31.0 But I removed it.

2 Likes

Welcome to the Let's Encrypt Community, Maxine :slightly_smiling_face:

Sorry you're having trouble.

What is the output of this?

sudo apachectl -S

1 Like

Hello @cindywill317 and welcome to the LE community forum :slight_smile:

There are problems with your apache config and you seem to have deleted the certs it is still configure to use.

Please show the output of:
certbot certificates
apachectl -S

2 Likes

@rg305

She uninstalled certbot. :slightly_frowning_face:

Glad we agree on the other path. :slightly_smiling_face:

2 Likes

Uninstalled and reinstalled so who knows where we stand.
Perhaps the intended uninstall used rm or purge...
[let's hope not]

We should have a look at:
find /etc/letsencrypt -name fullchain*

2 Likes

Considering that this is missing:

/etc/letsencrypt/options-ssl-apache.conf

I wouldn't get my hopes up.

2 Likes

Hi! Thank you all for replying.
The output of those are

Saving debug log to /var/log/letsencrypt/letsencrypt.log


No certs found.


and

apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 14 of /etc/apache2/sites-enabled/allmyloveyogurt.com-le-ssl.conf: Could not open configuration file /etc/letsencrypt/options-ssl-apache.conf: No such file or directory
Action '-S' failed.
The Apache error log may have more information.
It's the same error came up when I try to
sudo certbot --apache -d allmyloveyogurt.com

3 Likes

Use sudo apachectl -S please

2 Likes

How about:

2 Likes

Yes.. It's missing.
It there anything I can do to solve this problem?

3 Likes

Start over.
Luckily LE certs are FREE!

First you need to fix Apache to the point it can run.
Show:
sudo apachectl -S
find /etc/letsencrypt -name fullchain*

2 Likes

We will help with your configuration, but we need the sudo output.

2 Likes

The command

sudo apachectl -S

shows

apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 14 of /etc/apache2/sites-enabled/allmyloveyogurt.com-le-ssl.conf: Could not open configuration file /etc/letsencrypt/options-ssl-apache.conf: No such file or directory
Action '-S' failed.
The Apache error log may have more information.

2 Likes

Right, apache is crashed.

2 Likes

I'm going to sop asking and posting
It's all yours :heavy_heart_exclamation:

2 Likes

sudo ls -lRa /etc/apache2/sites-available

sudo ls -lRa /etc/apache2/sites-enabled

1 Like

You're abandoning me? :worried:

No worries. If ya gots ta run. :slightly_smiling_face:

1 Like

Does it means I have to rebuild my server or...?
:joy: Thank you guys, I'm totally new at this.

2 Likes

Not necessarily. Depends on the damage.

2 Likes

for those it shows

/etc/apache2/sites-available:
total 28
drwxr-xr-x 2 root root 4096 Jan 31 04:19 .
drwxr-xr-x 8 root root 4096 Feb 1 01:29 ..
-rw-r--r-- 1 root root 1332 Aug 8 15:47 000-default.conf
-rw-r--r-- 1 root root 677 Jan 31 03:59 allmyloveyogurt.com.conf
-rw-r--r-- 1 root root 653 Jan 31 04:19 allmyloveyogurt.com-le-ssl.conf
-rw-r--r-- 1 root root 6338 Aug 8 15:47 default-ssl.conf

and

/etc/apache2/sites-enabled:
total 12
drwxr-xr-x 2 root root 4096 Feb 1 01:26 .
drwxr-xr-x 8 root root 4096 Feb 1 01:29 ..
lrwxrwxrwx 1 root root 43 Jan 16 02:04 allmyloveyogurt.com.conf -> ../sites-available/allmyloveyogurt.com.conf
lrwxrwxrwx 1 root root 60 Jan 31 03:57 allmyloveyogurt.com-le-ssl.conf -> /etc/apache2/sites-available/allmyloveyogurt.com-le-ssl.conf

2 Likes