Hello,
I'm a linux newbie, I have purchased domain joutsen.org and I have tried to make SSL work with Apache. I have followed these instructions trying to install letsecnrypt certificate with certbot:
https://certbot.eff.org/lets-encrypt/debianbuster-apache
once or twice I have tried installation with certbot that requires port 80 (I have stoppped Apache for that) and few times with the other method.
- OS: Raspbian / Debian 10 Buster
- Webserver: Apache/2.4.38 (Raspbian)
- domain: https://joutsen.org/
- Control panel: cPanel 90.0.8
- Root acces: Yes
- Certbot version: 1.9.0
On my hosting provider I have
- redirected joutsen.org to my server IP
- created DNS A record joutsen.org pointing to server ip (without really understanding what i'm doing)
Certificate seems to be installing normally and dry run goes through but domain says NET::ERR_CERT_AUTHORITY_INVALID.
sudo certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Found the following certs:
Certificate Name: joutsen.org
Serial Number: -
Domains: joutsen.org
Expiry Date: 2021-02-04 09:52:04+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/joutsen.org/fullchain.pem
Private Key Path: /etc/letsencrypt/live/joutsen.org/privkey.pem
Apache2 port.conf
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
Listen 80
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
contents of joutsen.org.conf
<VirtualHost *:80>
DocumentRoot "/var/www/joutsen.org/public_html/"
ServerName joutsen.org
RewriteEngine on
RewriteCond %{SERVER_NAME} =joutsen.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ProxyPreserveHost On
ProxyRequests Off
ServerName joutsen.org
ServerAlias joutsen.org
DocumentRoot "/var/www/joutsen.org/public_html/"
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/joutsen.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/joutsen.org/privkey.pem
</VirtualHost>
</IfModule>