Bonjour,
je ne sais si je suis au bon endroit mais comme il s'agit de sécuriser une connexion http...
Mon premier essai avec certbot ayant échoué et manquant de temps j'avais opté pour ZeroSSL qui est gratuit... 3 fois !
Actuellement ZeroSSL est actif jusqu'au 2 juillet.
J'ai donc cherché pour installer certbot.
snapd,( pas dispo en rpm) ne voulait pas s'installer car il me manquait squashfuse et ne se lançait pas car il fallait aussi kernel-modules.
Passé ces préliminaires
J'ai lancé la commande
Merci de votre attention
Gérard
je ne sais si je suis au bon endroit mais comme il s'agit de sécuriser une connexion http...
Mon premier essai avec certbot ayant échoué et manquant de temps j'avais opté pour ZeroSSL qui est gratuit... 3 fois !
Actuellement ZeroSSL est actif jusqu'au 2 juillet.
J'ai donc cherché pour installer certbot.
snapd,( pas dispo en rpm) ne voulait pas s'installer car il me manquait squashfuse et ne se lançait pas car il fallait aussi kernel-modules.
Passé ces préliminaires
J'ai lancé la commande
# certbot certonly --apache
et n'ai pas rencontré d'erreur
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/monsite.ovh/fullchain.pem
Key is saved at: /etc/letsencrypt/live/monsite.ovh/privkey.pem
This certificate expires on 2022-09-25.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
J'ai copié ces lignes dans mon virtualhost et là ça bloque
<VirtualHost *:443>
ServerName monsite.ovh
SSLEngine on
SSLCertificateChainFile /etc/letsencrypt/live/monsite.ovh/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/monsite.ovh/privkey.pem
# Dossier contenant les pages
DocumentRoot /var/www/html
<Directory /var/www/html/>
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
AllowOverride FileInfo AuthConfig Limit
</Directory>
ErrorLog logs/monsite-error.log
</VirtualHost>
apache ne peut démarrer et journalctl me renvoie :
# journalctl -xeu httpd.service
░░ A stop job for unit httpd.service has finished.
░░
░░ The job identifier is 3294 and the job result is done.
Jun 28 11:41:59 vpsxxxx.ovh.net systemd[1]: httpd.service: Consumed 56.098s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit httpd.service completed and consumed the indicated resources.
Jun 28 11:41:59 vpsxxxx.ovh.net systemd[1]: Starting The Apache HTTP Server...
░░ Subject: A start job for unit httpd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit httpd.service has begun execution.
░░
░░ The job identifier is 3294.
Jun 28 11:41:59 vpsxxxx.ovh.net systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit httpd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jun 28 11:41:59 vpsxxxx.ovh.net systemd[1]: httpd.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit httpd.service has entered the 'failed' state with result 'exit-code'.
Jun 28 11:41:59 vpsxxxx.ovh.net systemd[1]: Failed to start The Apache HTTP Server.
░░ Subject: A start job for unit httpd.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit httpd.service has finished with a failure.
░░
░░ The job identifier is 3294 and the job result is failed.
je ne sais trop que penser...Merci de votre attention
Gérard