How can I redo my certification?

What do these files contain?

/etc/apache2/sites-available/allmyloveyogurt.com.conf

/etc/apache2/sites-available/allmyloveyogurt.com-le-ssl.conf

2 Likes

the first one contain

<Directory /var/www/html/>
    Require all granted
</Directory>
<VirtualHost *:80>
    ServerName allmyloveyogurt.com
    ServerAdmin webmaster@localhost
    ServerAlias www.allmyloveyogurt.com
    DocumentRoot /var/www/html/allmyloveyogurt.com/public_html
    ErrorLog /var/log/apache2/allmyloveyogurt.com/error.log
    CustomLog /var/log/apache2/allmyloveyogurt.com/access.log combined
    <files xmlrpc.php>
      order allow,deny
      deny from all
    </files>
RewriteEngine on
RewriteCond %{SERVER_NAME} =allmyloveyogurt.com [OR]
RewriteCond %{SERVER_NAME} =www.allmyloveyogurt.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

the second one contain

<IfModule mod_ssl.c><VirtualHost *:443>
    ServerName allmyloveyogurt.com
    ServerAdmin webmaster@localhost
    ServerAlias www.allmyloveyogurt.com
    DocumentRoot /var/www/html/allmyloveyogurt.com/public_html
    ErrorLog /var/log/apache2/allmyloveyogurt.com/error.log
    CustomLog /var/log/apache2/allmyloveyogurt.com/access.log combined
    <files xmlrpc.php>
      order allow,deny
      deny from all
    </files>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/allmyloveyogurt.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/allmyloveyogurt.com/privkey.pem
</VirtualHost>
</IfModule>
2 Likes

Are those the whole files? The closings are missing.

Change the output postings to look like this:

```
output
```

That's for code instead of the quotes you've used.

Edit: Much better! :smiley:

2 Likes

Okay! I edit the post!

2 Likes

Replace the entire contents of /etc/apache2/sites-available/allmyloveyogurt.com.conf with this:

<Directory /var/www/html/>
Require all granted
</Directory>

<VirtualHost *:80>
ServerName allmyloveyogurt.com
ServerAlias www.allmyloveyogurt.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/allmyloveyogurt.com/public_html
ErrorLog /var/log/apache2/allmyloveyogurt.com/error.log
CustomLog /var/log/apache2/allmyloveyogurt.com/access.log combined

<files xmlrpc.php>
order allow,deny
deny from all
</files>
</VirtualHost>
2 Likes

View Your Certificate History

2 Likes

Okay, I replaced it!
Should I install certbot and start all over now or?

2 Likes

Not yet.

sudo a2dissite allmyloveyogurt.com-le-ssl.conf

sudo apachectl -k graceful

1 Like

It can't work.
It shows

ERROR: Site /etc/apache2/sites-available/allmyloveyogurt.com-le-ssl does not exist!
2 Likes

My fault.

sudo a2dissite allmyloveyogurt.com-le-ssl.conf

sudo apachectl -k graceful

2 Likes

Did I lose you?

If so, after the commands in my previous post, these should be next:

sudo rm /etc/apache2/sites-available/allmyloveyogurt.com-le-ssl.conf

What is the output of this?

sudo ls -lRa /etc/letsencrypt

If that's empty, you should be able to reinstall certbot then proceed with:

sudo certbot --apache -d "allmyloveyogurt.com,www.allmyloveyogurt.com"

2 Likes

Hi! I’m sorry I got urgent things to do so I can’t use my computer right now! I’ll be right back in about 15mins :pray:

2 Likes

No worries. If I'm not available, I believe I've given you everything else you need. :slightly_smiling_face:

2 Likes

Okay! Thank you so much for everything :pray:

2 Likes

Hi, what if it's not empty? It shows

/etc/letsencrypt:
total 12
drwxr-xr-x  3 root root 4096 Feb  1 16:14 .
drwxr-xr-x 81 root root 4096 Feb  1 16:09 ..
drwxr-xr-x  5 root root 4096 Feb  1 16:09 renewal-hooks

/etc/letsencrypt/renewal-hooks:
total 20
drwxr-xr-x 5 root root 4096 Feb  1 16:09 .
drwxr-xr-x 3 root root 4096 Feb  1 16:14 ..
drwxr-xr-x 2 root root 4096 Feb  1 16:09 deploy
drwxr-xr-x 2 root root 4096 Feb  1 16:09 post
drwxr-xr-x 2 root root 4096 Feb  1 16:09 pre

/etc/letsencrypt/renewal-hooks/deploy:
total 8
drwxr-xr-x 2 root root 4096 Feb  1 16:09 .
drwxr-xr-x 5 root root 4096 Feb  1 16:09 ..

/etc/letsencrypt/renewal-hooks/post:
total 8
drwxr-xr-x 2 root root 4096 Feb  1 16:09 .
drwxr-xr-x 5 root root 4096 Feb  1 16:09 ..

/etc/letsencrypt/renewal-hooks/pre:
total 8
drwxr-xr-x 2 root root 4096 Feb  1 16:09 .
drwxr-xr-x 5 root root 4096 Feb  1 16:09 ..
2 Likes

Also I can not access my domain now.
Will it recover once I reinstall Certbot and proceed with

sudo certbot --apache -d "allmyloveyogurt.com,www.allmyloveyogurt.com"

Thanks again

2 Likes

It is ok, doesn't matter.

I can, I see your coming soon page. Maybe you are trying to access to https and that is the reason you can't access.

Yes, it should recover once you get your cert and certbot configures your site again. Go ahead and try the command.

Just a warning, this is the last time you can issue a certificate covering your both domains in the same cert because you have already issued 4 for the same sub set of domains last 7 days, the next one will be the last, after that you will hit the rate limit of 5 certificates covering the same domains per 7 days and you should wait 6 days but no worries, it should work :wink:

2 Likes

Hi, thanks for helping and warning!
One last question, can I install it by using this command

sudo apt install certbot python-certbot-apache

or should I just install it with

sudo apt install certbot
1 Like

As you are using Debian 10 install python3-certbot-apache:

sudo apt install certbot python3-certbot-apache

I've checked it and python-certbot-apache is a dummy package to allow the transition from python2 to python3 so it will install python3-certbot-apache so no matter what you install but better install directly the python3 package :wink:

3 Likes

Ohh!!! It worked! Everythings' working perfectly right now!
Thank you all for helping me! It's so nice of you :sob: :heavy_heart_exclamation:

3 Likes