Certbot failed to authenticate some domains

I have a domain that is currently accessible via http://charkath.com and http://www.charkath.com - and I am trying to get it moved to HTTPS. I have a Ubuntu 20.04LTS server with Apache installed. I installed the certbot and initiated the process of getting the certificates but I got this error:

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: charkath.com
2: live.charkath.com
3: www.live.charkath.com
4: www.charkath.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 
Requesting a certificate for charkath.com and 3 more domains

Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
  Domain: www.charkath.com
  Type:   dns
  Detail: DNS problem: SERVFAIL looking up CAA for www.charkath.com - the domain's nameservers may be malfunctioning

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

How do I fix this issue?

2 Likes

On Google's Cloud DNS dashboard I added a TXT record for the primary domain and the subdomain and retried the command. I now get a different error message:

Which names would you like to activate HTTPS for?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: charkath.com
2: live.charkath.com
3: www.live.charkath.com
4: www.charkath.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 
Requesting a certificate for charkath.com and 3 more domains

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/charkath.com/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/charkath.com/privkey.pem
This certificate expires on 2022-03-30.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.

Deploying certificate
Successfully deployed certificate for charkath.com to /etc/apache2/sites-available/charkath-le-ssl.conf
Successfully deployed certificate for live.charkath.com to /etc/apache2/sites-available/charkath-le-ssl.conf
Successfully deployed certificate for www.live.charkath.com to /etc/apache2/sites-available/charkath-le-ssl.conf
Could not install certificate
An unexpected error occurred:
augeas.AugeasValueError: Augeas.set() failed: Too many matches for path expression
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
2 Likes

Hello :slightly_smiling_face:

What is the output of:

sudo apachectl -S

Please put ``` above and below the output, like this:

```
output
```

2 Likes

This is what I get:

VirtualHost configuration:
*:80                   is a NameVirtualHost
         default server charkath.com (/etc/apache2/sites-enabled/charkath.conf:1)
         port 80 namevhost charkath.com (/etc/apache2/sites-enabled/charkath.conf:1)
                 alias www.charkath.com
         port 80 namevhost live.charkath.com (/etc/apache2/sites-enabled/charkath.conf:14)
                 alias www.live.charkath.com
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default 
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
2 Likes

What are the outputs of:

sudo cat /etc/apache2/sites-available/charkath.conf
sudo cat /etc/apache2/sites-available/charkath-le-ssl.conf
2 Likes

It gives me:

<VirtualHost *:80>
    ServerAdmin patrickvgregorio@gmail.com
    ServerName charkath.com
    ServerAlias www.charkath.com
    DocumentRoot /var/www/html
    <Directory /var/www/html>
        Options -Indexes +FollowSymLinks
        AllowOverride All
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin patrickvgregorio@gmail.com
    ServerName live.charkath.com
    ServerAlias www.live.charkath.com
    DocumentRoot /var/www/live.charkath.com
    <Directory /var/www/live.charkath.com>
        Options -Indexes +FollowSymLinks
        AllowOverride All
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Update

For the second command:

dokgu@charkath:~$ sudo cat /etc/apache2/sites-available/charkath-le-ssl.conf
cat: /etc/apache2/sites-available/charkath-le-ssl.conf: No such file or directory
2 Likes

I only see three files under sites-available:

dokgu@charkath:/etc/apache2/sites-available$ ls -la
total 24
drwxr-xr-x 2 root root 4096 Dec 30 19:13 .
drwxr-xr-x 8 root root 4096 Dec 30 19:13 ..
-rw-r--r-- 1 root root 1332 Sep 30  2020 000-default.conf
-rw-r--r-- 1 root root  789 Dec 30 18:33 charkath.conf
-rw-r--r-- 1 root root 6338 Sep 30  2020 default-ssl.conf
2 Likes

What is the output of:

sudo ls -lRa /etc/apache2
2 Likes

Yet...

2 Likes

This is a long one:

lrwxrwxrwx 1 root root   33 Dec 30 16:24 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root   32 Dec 30 16:24 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root   32 Dec 30 16:24 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root   30 Dec 30 16:24 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root   30 Dec 30 16:24 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root   26 Dec 30 16:24 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root   26 Dec 30 16:24 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root   26 Dec 30 16:24 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root   29 Dec 30 16:24 filter.load -> ../mods-available/filter.load
lrwxrwxrwx 1 root root   27 Dec 30 16:24 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root   27 Dec 30 16:24 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root   34 Dec 30 16:24 mpm_prefork.conf -> ../mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root   34 Dec 30 16:24 mpm_prefork.load -> ../mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root   34 Dec 30 16:24 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root   34 Dec 30 16:24 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root   29 Dec 30 16:24 php7.4.conf -> ../mods-available/php7.4.conf
lrwxrwxrwx 1 root root   29 Dec 30 16:24 php7.4.load -> ../mods-available/php7.4.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root   33 Dec 30 16:24 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root   31 Dec 30 16:24 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root   31 Dec 30 16:24 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root   29 Dec 30 16:24 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root   29 Dec 30 16:24 status.load -> ../mods-available/status.load

/etc/apache2/sites-available:
total 24
drwxr-xr-x 2 root root 4096 Dec 30 19:13 .
drwxr-xr-x 8 root root 4096 Dec 30 19:13 ..
-rw-r--r-- 1 root root 1332 Sep 30  2020 000-default.conf
-rw-r--r-- 1 root root  789 Dec 30 18:33 charkath.conf
-rw-r--r-- 1 root root 6338 Sep 30  2020 default-ssl.conf

/etc/apache2/sites-enabled:
total 8
drwxr-xr-x 2 root root 4096 Dec 30 19:13 .
drwxr-xr-x 8 root root 4096 Dec 30 19:13 ..
lrwxrwxrwx 1 root root   32 Dec 30 17:03 charkath.conf -> ../sites-available/charkath.conf
2 Likes

Odd...

Did you remove parts of the output?

2 Likes

Sorry I'm having issues trying to copy long outputs from the web browser terminal that Google provides for SSH'ing into the server.

2 Likes

No problem. :slightly_smiling_face:

Run this then upload output.txt in a post:

sudo ls -lRa /etc/apache2 > output.txt
2 Likes

Out of curiosity, does this directory actually exist and have correct permissions for Apache:

/var/www/live.charkath.com
2 Likes

It should..

dokgu@charkath:/var/www$ ls -la
total 16
drwxr-xr-x  4 root     root  4096 Dec 30 16:57 .
drwxr-xr-x 14 root     root  4096 Dec 30 16:24 ..
drwxr-xr-x  2 www-data dokgu 4096 Dec 30 16:51 html
drwxr-xr-x  2 www-data dokgu 4096 Dec 30 16:59 live.charkath.com

Also, there's a problem with the previous command you wanted me to run. /etc/apache2 is a directory. What did you want me to cat with?

2 Likes

Copy and paste mistake on my part. Check the updated command.

2 Likes

Never mind on that command. I think I have a fix. Just a minute.

2 Likes

You know what, I wasn't thinking out of the box.. I could just copy bit by bit before I post the output lol..

/etc/apache2:
total 88
drwxr-xr-x  8 root root  4096 Dec 30 19:13 .
drwxr-xr-x 98 root root  4096 Dec 30 19:32 ..
-rw-r--r--  1 root root  7245 Dec 30 18:08 apache2.conf
drwxr-xr-x  2 root root  4096 Dec 30 16:24 conf-available
drwxr-xr-x  2 root root  4096 Dec 30 16:24 conf-enabled
-rw-r--r--  1 root root  1782 Sep 30  2020 envvars
-rw-r--r--  1 root root 31063 Sep 30  2020 magic
drwxr-xr-x  2 root root 12288 Dec 30 16:24 mods-available
drwxr-xr-x  2 root root  4096 Dec 30 19:13 mods-enabled
-rw-r--r--  1 root root   320 Sep 30  2020 ports.conf
drwxr-xr-x  2 root root  4096 Dec 30 19:13 sites-available
drwxr-xr-x  2 root root  4096 Dec 30 19:13 sites-enabled

/etc/apache2/conf-available:
total 32
drwxr-xr-x 2 root root 4096 Dec 30 16:24 .
drwxr-xr-x 8 root root 4096 Dec 30 19:13 ..
-rw-r--r-- 1 root root  315 Sep 30  2020 charset.conf
-rw-r--r-- 1 root root 3224 Sep 30  2020 localized-error-pages.conf
-rw-r--r-- 1 root root  189 Sep 30  2020 other-vhosts-access-log.conf
-rw-r--r-- 1 root root  804 Nov 25 23:16 php7.4-fpm.conf
-rw-r--r-- 1 root root 2174 Sep 30  2020 security.conf
-rw-r--r-- 1 root root  455 Sep 30  2020 serve-cgi-bin.conf

/etc/apache2/conf-enabled:
total 8
drwxr-xr-x 2 root root 4096 Dec 30 16:24 .
drwxr-xr-x 8 root root 4096 Dec 30 19:13 ..
lrwxrwxrwx 1 root root   30 Dec 30 16:24 charset.conf -> ../conf-available/charset.conf
lrwxrwxrwx 1 root root   44 Dec 30 16:24 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
lrwxrwxrwx 1 root root   46 Dec 30 16:24 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
lrwxrwxrwx 1 root root   31 Dec 30 16:24 security.conf -> ../conf-available/security.conf
lrwxrwxrwx 1 root root   36 Dec 30 16:24 serve-cgi-bin.conf -> ../conf-available/serve-cgi-bin.conf

/etc/apache2/mods-available:
total 592
drwxr-xr-x 2 root root 12288 Dec 30 16:24 .
drwxr-xr-x 8 root root  4096 Dec 30 19:13 ..
-rw-r--r-- 1 root root   100 Sep 30  2020 access_compat.load
-rw-r--r-- 1 root root   377 Sep 30  2020 actions.conf
-rw-r--r-- 1 root root    66 Sep 30  2020 actions.load
-rw-r--r-- 1 root root   843 Sep 30  2020 alias.conf
-rw-r--r-- 1 root root    62 Sep 30  2020 alias.load
-rw-r--r-- 1 root root    76 Sep 30  2020 allowmethods.load
-rw-r--r-- 1 root root    76 Sep 30  2020 asis.load
-rw-r--r-- 1 root root    94 Sep 30  2020 auth_basic.load
-rw-r--r-- 1 root root    96 Sep 30  2020 auth_digest.load
-rw-r--r-- 1 root root   100 Sep 30  2020 auth_form.load
-rw-r--r-- 1 root root    72 Sep 30  2020 authn_anon.load
-rw-r--r-- 1 root root    72 Sep 30  2020 authn_core.load
-rw-r--r-- 1 root root    85 Sep 30  2020 authn_dbd.load
-rw-r--r-- 1 root root    70 Sep 30  2020 authn_dbm.load
-rw-r--r-- 1 root root    72 Sep 30  2020 authn_file.load
-rw-r--r-- 1 root root    78 Sep 30  2020 authn_socache.load
-rw-r--r-- 1 root root    74 Sep 30  2020 authnz_fcgi.load
-rw-r--r-- 1 root root    90 Sep 30  2020 authnz_ldap.load
-rw-r--r-- 1 root root    72 Sep 30  2020 authz_core.load
-rw-r--r-- 1 root root    96 Sep 30  2020 authz_dbd.load
-rw-r--r-- 1 root root    92 Sep 30  2020 authz_dbm.load
-rw-r--r-- 1 root root   104 Sep 30  2020 authz_groupfile.load
-rw-r--r-- 1 root root    94 Sep 30  2020 authz_host.load
-rw-r--r-- 1 root root    74 Sep 30  2020 authz_owner.load
-rw-r--r-- 1 root root    94 Sep 30  2020 authz_user.load
-rw-r--r-- 1 root root  3374 Sep 30  2020 autoindex.conf
-rw-r--r-- 1 root root    70 Sep 30  2020 autoindex.load
-rw-r--r-- 1 root root    64 Sep 30  2020 brotli.load
-rw-r--r-- 1 root root    64 Sep 30  2020 buffer.load
-rw-r--r-- 1 root root    62 Sep 30  2020 cache.load
-rw-r--r-- 1 root root   889 Sep 30  2020 cache_disk.conf
-rw-r--r-- 1 root root    89 Sep 30  2020 cache_disk.load
-rw-r--r-- 1 root root    95 Sep 30  2020 cache_socache.load
-rw-r--r-- 1 root root    70 Sep 30  2020 cern_meta.load
-rw-r--r-- 1 root root    58 Sep 30  2020 cgi.load
-rw-r--r-- 1 root root   115 Sep 30  2020 cgid.conf
-rw-r--r-- 1 root root    60 Sep 30  2020 cgid.load
-rw-r--r-- 1 root root    76 Sep 30  2020 charset_lite.load
-rw-r--r-- 1 root root    60 Sep 30  2020 data.load
-rw-r--r-- 1 root root    58 Nov 10  2020 dav.load
-rw-r--r-- 1 root root    83 Sep 30  2020 dav_fs.conf
-rw-r--r-- 1 root root    79 Sep 30  2020 dav_fs.load
-rw-r--r-- 1 root root    68 Sep 30  2020 dav_lock.load
-rw-r--r-- 1 root root    58 Sep 30  2020 dbd.load
-rw-r--r-- 1 root root   395 Nov 10  2020 deflate.conf
-rw-r--r-- 1 root root    84 Sep 30  2020 deflate.load
-rw-r--r-- 1 root root    64 Sep 30  2020 dialup.load
-rw-r--r-- 1 root root   157 Sep 30  2020 dir.conf
-rw-r--r-- 1 root root    58 Sep 30  2020 dir.load
-rw-r--r-- 1 root root    64 Sep 30  2020 dump_io.load
-rw-r--r-- 1 root root    60 Sep 30  2020 echo.load
-rw-r--r-- 1 root root    58 Sep 30  2020 env.load
-rw-r--r-- 1 root root    66 Sep 30  2020 expires.load
-rw-r--r-- 1 root root    72 Sep 30  2020 ext_filter.load
-rw-r--r-- 1 root root    89 Sep 30  2020 file_cache.load
-rw-r--r-- 1 root root    64 Sep 30  2020 filter.load
-rw-r--r-- 1 root root    66 Sep 30  2020 headers.load
-rw-r--r-- 1 root root   176 Sep 30  2020 heartbeat.load
-rw-r--r-- 1 root root   182 Sep 30  2020 heartmonitor.load
-rw-r--r-- 1 root root  1240 Sep 30  2020 http2.conf
-rw-r--r-- 1 root root    62 Sep 30  2020 http2.load
-rw-r--r-- 1 root root    62 Sep 30  2020 ident.load
-rw-r--r-- 1 root root    68 Sep 30  2020 imagemap.load
-rw-r--r-- 1 root root    82 Sep 30  2020 include.load
-rw-r--r-- 1 root root   402 Sep 30  2020 info.conf
-rw-r--r-- 1 root root    60 Sep 30  2020 info.load
-rw-r--r-- 1 root root   116 Sep 30  2020 lbmethod_bybusyness.load
-rw-r--r-- 1 root root   116 Sep 30  2020 lbmethod_byrequests.load
-rw-r--r-- 1 root root   114 Sep 30  2020 lbmethod_bytraffic.load
-rw-r--r-- 1 root root   114 Sep 30  2020 lbmethod_heartbeat.load
-rw-r--r-- 1 root root   121 Sep 30  2020 ldap.conf
-rw-r--r-- 1 root root    60 Sep 30  2020 ldap.load
-rw-r--r-- 1 root root    70 Sep 30  2020 log_debug.load
-rw-r--r-- 1 root root    76 Sep 30  2020 log_forensic.load
-rw-r--r-- 1 root root    58 Sep 30  2020 lua.load
-rw-r--r-- 1 root root    62 Sep 30  2020 macro.load
-rw-r--r-- 1 root root    56 Sep 30  2020 md.load
-rw-r--r-- 1 root root  7676 Sep 30  2020 mime.conf
-rw-r--r-- 1 root root    60 Sep 30  2020 mime.load
-rw-r--r-- 1 root root   120 Sep 30  2020 mime_magic.conf
-rw-r--r-- 1 root root    72 Sep 30  2020 mime_magic.load
-rw-r--r-- 1 root root   668 Sep 30  2020 mpm_event.conf
-rw-r--r-- 1 root root   106 Sep 30  2020 mpm_event.load
-rw-r--r-- 1 root root   571 Sep 30  2020 mpm_prefork.conf
-rw-r--r-- 1 root root   108 Sep 30  2020 mpm_prefork.load
-rw-r--r-- 1 root root   836 Sep 30  2020 mpm_worker.conf
-rw-r--r-- 1 root root   107 Sep 30  2020 mpm_worker.load
-rw-r--r-- 1 root root   724 Sep 30  2020 negotiation.conf
-rw-r--r-- 1 root root    74 Sep 30  2020 negotiation.load
-rw-r--r-- 1 root root   855 Nov 25 23:16 php7.4.conf
-rw-r--r-- 1 root root   102 Nov 25 23:16 php7.4.load
-rw-r--r-- 1 root root   822 Sep 30  2020 proxy.conf
-rw-r--r-- 1 root root    62 Sep 30  2020 proxy.load
-rw-r--r-- 1 root root    87 Sep 30  2020 proxy_ajp.load
-rw-r--r-- 1 root root   347 Sep 30  2020 proxy_balancer.conf
-rw-r--r-- 1 root root   115 Sep 30  2020 proxy_balancer.load
-rw-r--r-- 1 root root    95 Sep 30  2020 proxy_connect.load
-rw-r--r-- 1 root root    95 Sep 30  2020 proxy_express.load
-rw-r--r-- 1 root root    89 Sep 30  2020 proxy_fcgi.load
-rw-r--r-- 1 root root    93 Sep 30  2020 proxy_fdpass.load
-rw-r--r-- 1 root root   189 Sep 30  2020 proxy_ftp.conf
-rw-r--r-- 1 root root    87 Sep 30  2020 proxy_ftp.load
-rw-r--r-- 1 root root    93 Sep 30  2020 proxy_hcheck.load
-rw-r--r-- 1 root root  2511 Sep 30  2020 proxy_html.conf
-rw-r--r-- 1 root root    97 Sep 30  2020 proxy_html.load
-rw-r--r-- 1 root root    89 Sep 30  2020 proxy_http.load
-rw-r--r-- 1 root root    97 Sep 30  2020 proxy_http2.load
-rw-r--r-- 1 root root    89 Sep 30  2020 proxy_scgi.load
-rw-r--r-- 1 root root    91 Sep 30  2020 proxy_uwsgi.load
-rw-r--r-- 1 root root    97 Sep 30  2020 proxy_wstunnel.load
-rw-r--r-- 1 root root    85 Sep 30  2020 ratelimit.load
-rw-r--r-- 1 root root    70 Sep 30  2020 reflector.load
-rw-r--r-- 1 root root    68 Sep 30  2020 remoteip.load
-rw-r--r-- 1 root root  1190 Sep 30  2020 reqtimeout.conf
-rw-r--r-- 1 root root    72 Sep 30  2020 reqtimeout.load
-rw-r--r-- 1 root root    66 Sep 30  2020 request.load
-rw-r--r-- 1 root root    66 Sep 30  2020 rewrite.load
-rw-r--r-- 1 root root    58 Sep 30  2020 sed.load
-rw-r--r-- 1 root root    66 Sep 30  2020 session.load
-rw-r--r-- 1 root root    99 Sep 30  2020 session_cookie.load
-rw-r--r-- 1 root root    99 Sep 30  2020 session_crypto.load
-rw-r--r-- 1 root root    93 Sep 30  2020 session_dbd.load
-rw-r--r-- 1 root root  1280 Sep 30  2020 setenvif.conf
-rw-r--r-- 1 root root    68 Sep 30  2020 setenvif.load
-rw-r--r-- 1 root root    78 Sep 30  2020 slotmem_plain.load
-rw-r--r-- 1 root root    74 Sep 30  2020 slotmem_shm.load
-rw-r--r-- 1 root root    74 Sep 30  2020 socache_dbm.load
-rw-r--r-- 1 root root    84 Sep 30  2020 socache_memcache.load
-rw-r--r-- 1 root root    78 Sep 30  2020 socache_redis.load
-rw-r--r-- 1 root root    78 Sep 30  2020 socache_shmcb.load
-rw-r--r-- 1 root root    66 Sep 30  2020 speling.load
-rw-r--r-- 1 root root  3110 Sep 30  2020 ssl.conf
-rw-r--r-- 1 root root    97 Sep 30  2020 ssl.load
-rw-r--r-- 1 root root   749 Sep 30  2020 status.conf
-rw-r--r-- 1 root root    64 Sep 30  2020 status.load
-rw-r--r-- 1 root root    72 Sep 30  2020 substitute.load
-rw-r--r-- 1 root root    64 Sep 30  2020 suexec.load
-rw-r--r-- 1 root root    70 Sep 30  2020 unique_id.load
-rw-r--r-- 1 root root   324 Sep 30  2020 userdir.conf
-rw-r--r-- 1 root root    66 Sep 30  2020 userdir.load
-rw-r--r-- 1 root root    70 Sep 30  2020 usertrack.load
-rw-r--r-- 1 root root    74 Sep 30  2020 vhost_alias.load
-rw-r--r-- 1 root root    66 Sep 30  2020 xml2enc.load

/etc/apache2/mods-enabled:
total 8
drwxr-xr-x 2 root root 4096 Dec 30 19:13 .
drwxr-xr-x 8 root root 4096 Dec 30 19:13 ..
lrwxrwxrwx 1 root root   36 Dec 30 16:24 access_compat.load -> ../mods-available/access_compat.load
lrwxrwxrwx 1 root root   28 Dec 30 16:24 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root   28 Dec 30 16:24 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root   32 Dec 30 16:24 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root   32 Dec 30 16:24 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root   30 Dec 30 16:24 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root   30 Dec 30 16:24 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root   26 Dec 30 16:24 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root   26 Dec 30 16:24 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root   26 Dec 30 16:24 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root   29 Dec 30 16:24 filter.load -> ../mods-available/filter.load
lrwxrwxrwx 1 root root   27 Dec 30 16:24 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root   27 Dec 30 16:24 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root   34 Dec 30 16:24 mpm_prefork.conf -> ../mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root   34 Dec 30 16:24 mpm_prefork.load -> ../mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root   34 Dec 30 16:24 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root   34 Dec 30 16:24 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root   29 Dec 30 16:24 php7.4.conf -> ../mods-available/php7.4.conf
lrwxrwxrwx 1 root root   29 Dec 30 16:24 php7.4.load -> ../mods-available/php7.4.load
lrwxrwxrwx 1 root root   33 Dec 30 16:24 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root   33 Dec 30 16:24 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root   31 Dec 30 16:24 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root   31 Dec 30 16:24 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root   29 Dec 30 16:24 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root   29 Dec 30 16:24 status.load -> ../mods-available/status.load

/etc/apache2/sites-available:
total 24
drwxr-xr-x 2 root root 4096 Dec 30 19:13 .
drwxr-xr-x 8 root root 4096 Dec 30 19:13 ..
-rw-r--r-- 1 root root 1332 Sep 30  2020 000-default.conf
-rw-r--r-- 1 root root  789 Dec 30 18:33 charkath.conf
-rw-r--r-- 1 root root 6338 Sep 30  2020 default-ssl.conf

/etc/apache2/sites-enabled:
total 8
drwxr-xr-x 2 root root 4096 Dec 30 19:13 .
drwxr-xr-x 8 root root 4096 Dec 30 19:13 ..
lrwxrwxrwx 1 root root   32 Dec 30 17:03 charkath.conf -> ../sites-available/charkath.conf

There you go.. in all its glory.

2 Likes

Download these into /etc/apache2/sites-available :

charkath.com.conf.txt (376 Bytes)

live.charkath.com.conf.txt (412 Bytes)

Run these:

sudo mv /etc/apache2/sites-available/charkath.com.conf.txt /etc/apache2/sites-available/charkath.com.conf
sudo mv /etc/apache2/sites-available/live.charkath.com.conf.txt /etc/apache2/sites-available/live.charkath.com.conf
sudo a2dissite charkath.conf
sudo a2ensite charkath.com.conf
sudo a2ensite live.charkath.com.conf
sudo apachectl -k graceful
sudo certbot --apache -d "charkath.com,www.charkath.com"
sudo certbot --apache -d "live.charkath.com,www.live.charkath.com"
3 Likes

Here's the related bug:

Tagging certbot engineer @_az for review.

3 Likes