Mise à jour et installation des paquets nécessaires

sudo apt-get update
sudp apt-get upgrade
sudo apt-get -y install openssl

Plan d’action

Contenu de /etc/apache2/sites-enabled/000-nom-de-domaine.com-ssl.conf

<VirtualHost ip_a_renseigner:443>
        ServerName www.nom-de-domaine.com
        ServerAlias nom-de-domaine.com
        DocumentRoot /var/www/appli
        CustomLog /var/log/apache2/secure_access.log combined

        SSLEngine on
        SSLCertificateFile /etc/ssl/certs/server.crt
        SSLCertificateKeyFile /etc/ssl/private/server.key
        SSLCertificateChainFile /etc/ssl/certs/server.pem
        SSLVerifyClient None
</VirtualHost>

Leave a Reply