Hi !
I've tried certbot to generate an SSL certificate. I'm running Apache 2.4.53 on Fedora 34 server. Here's the output:
[root@fedora ~]# certbot --apache -d www.loschool.page
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certificate not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/www.loschool.page.conf)
What would you like to do?
1: Attempt to reinstall this existing certificate
2: Renew & replace the certificate (may be subject to CA rate limits)
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate for www.loschool.page
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/www.loschool.page/fullchain.pem
Key is saved at: /etc/letsencrypt/live/www.loschool.page/privkey.pem
This certificate expires on 2022-10-03.
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 www.loschool.page to /etc/httpd/conf.d/vhost-le-ssl.conf
Your existing certificate has been successfully renewed, and the new certificate has been installed.
If you like Certbot, please consider supporting our work by:
- Donating to ISRG / Let's Encrypt: Donate - Let's Encrypt
- Donating to EFF: Support EFF's Work on Let's Encrypt | Electronic Frontier Foundation
[root@fedora ~]# cat /etc/httpd/conf.d/vhost.conf
<VirtualHost *:80>
DocumentRoot "/var/www/loschool/public"
ServerName www.loschool.page
ServerAdmin laurent.delacre@indloverval.be
ErrorLog "logs/myproject-error_log"
CustomLog "logs/myproject-access_log" common
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.loschool.page
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<Directory "/var/www/loschool/public">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
[root@fedora ~]# cat /etc/httpd/conf.d/vhost-le-ssl.conf
<VirtualHost *:443>
DocumentRoot "/var/www/loschool/public"
ServerName www.loschool.page
ServerAdmin laurent.delacre@indloverval.be
ErrorLog "logs/myproject-error_log"
CustomLog "logs/myproject-access_log" common
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/www.loschool.page/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.loschool.page/privkey.pem
[root@fedora ~]#
When I try to access my site (https://www.loschool.page), Chrome/Firefox blocks the connexion. The site www.sslabs.com says that the domain name is Fedora in SSL certificate ! How to change it to www.loschool.page ? Is it a bug in certbot ?
SSL Server Test: www.loschool.page (Powered by Qualys SSL Labs)
Thank you for your help !