My domain is:
kadeperegrine.co.uk
I ran this command:
sudo certbot renew --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
---
Processing /etc/letsencrypt/renewal/kadeperegrine.co.uk.conf
---
Simulating renewal of an existing certificate for kadeperegrine.co.uk and *.kadeperegrine.co.uk
Waiting 10 seconds for DNS changes to propagate
---
Congratulations, all simulated renewals succeeded:
/etc/letsencrypt/live/kadeperegrine.co.uk/fullchain.pem (success)
---
My web server is (include version):
Apache/2.4.52
The operating system my web server runs on is (include version):
Ubuntu 22.04
My hosting provider, if applicable, is:
digitalocean
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
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
Certbot 1.29.0
All the installation appeared to go fine, accessing my site with http works fine, but attempting to access via https results in the error message: ERR_SSL_PROTOCOL_ERROR
I have two enabled sites in apache2/sites-enabled:
# kadeperegrine.co.uk.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName kadeperegrine.co.uk
ServerAlias www.kadeperegrine.co.uk
DocumentRoot /var/www/kadeperegrine.co.uk
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
# dokuwiki.kadeperegrine.co.uk.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName dokuwiki.kadeperegrine.co.uk
ServerAlias dokuwiki.kadeperegrine.co.uk
DocumentRoot /var/www/dokuwiki
DirectoryIndex index.php index.html index.htm
<Directory /var/www/dokuwiki/>
Require all granted
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /log/ "/var/log/"
<Directory "/var/log">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from all
Require all granted
</Directory>
</VirtualHost>
I have the default-ssl file in sites-available:
# default-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost _defualt_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
#SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt
#SSLCACertificatePath /etc/ssl/certs/
#SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt
#SSLCARevocationPath /etc/apache2/ssl.crl/
#SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl
#SSLVerifyClient require
#SSLVerifyDepth 10
#SSL +FakeBasicAuth +ExportCertData +StrictRequire
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>
I have port 443 enabled through my firewall.
my enabled apache mods:
- access_compat.load
- alias.conf
- alias.load
- auth.basic.load
- authn_core.load
- authz_core.load
- authz_host.load
- authz_user.load
- autoindex.conf
- autoindex.load
- deflate.conf
- deflate.load
- dir.conf
- dir.load
- env.load
- filter.load
- mime.conf
- mime.load
- mpm_prefork.conf
- mpm_prefork.load
- negotiation.conf
- negotiation.load
- php8.1.conf
- php8.1.load
- proxy.conf
- proxy.load
- proxy_http.load
- reqtimeout.conf
- reqtimeout.load
- rewrite.load
- setenvif.conf
- setenvif.load
- socache_shmcb.load
- ssl.cof
- ssl.load
- status.conf
- status.load
- vhost_alias.load
I'm sure it's something with the VirtualHosts, but I don't really understand how they work. I also want to add an additional VHost in the future so that an app I currently access via IP address and a port number can be accessed as a subdomain. I used a wildcard certificate in the hopes that it would cover newly created subdomains, too.
Thank you in advance for your time