Categories: DiversLinux

Comment mettre un certificat SSL sur Apache 2.2.X

Comment installer un certificat SSL sur Apache 2.2.X en utilisant des fichiers séparés:

CHEMIN_FICHIER_CRT: Chemin vers le fichier contenant le certificat (souvent .crt)
CHEMIN_FICHIER_KEY: Chemin vers le fichier contenant la clés privée (souvent .key)
CHEMIN_FICHIER_CA: Chemin vers le fichier contenant le Certificat Authority (CA)

Le VirtualHost ci-dessous utilisera pour l’exemple le nom de domaine domain.com et le répertoire publique du site sera /srv/domain.com/public_html. Remplacez les valeurs en gras comme ci-dessus par les bonnes valeurs dans le VirtualHost d’exemple ci-dessous.

ServerName  domain.com
ServerAlias  www.domain.com
DocumentRoot /srv/domain.com/public_html
Options None

SSLEngine on
SSLProtocol all -SSLv2
SSLCertificateFile CHEMIN_FICHIER_CRT
SSLCertificateKeyFile CHEMIN_FICHIER_KEY
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateChainFile CHEMIN_FICHIER_CA

The GrimmChester

Share
Published by
The GrimmChester
Tags: apachessl

Recent Posts

How to set up a SIP trunk with FreePBX and Twilio

FreePBX Server Requirements FreePBX 14.0 Asterisk 13 1 Twilio Number Mine will be (579)123-1234 Notes:…

8 years ago

Automated Web Hosting Solution (AWHS)Panel

Requirements For now, AWHSPanel only supports Debian 8 but its architecture allows easy new implementations.…

9 years ago

How to install ioncube on Debian & Ubuntu

ionCube installation What is ionCube: ionCube helps you to protect your PHP code from being…

10 years ago

Comment rediriger un site HTTP vers HTTPS

RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]

10 years ago

How To Install Linux, Nginx, MySQL, PHP (LEMP) on Debian 8

Files Structure: /srv /mydomain.com /.socks /www /cgi-bin /logs /public_html /ssl /tmp /blog /cgi-bin /logs /public_html…

10 years ago

How To automate Horde Groupware Webmail installation

Prerequisites: - 1 database (mysql) - 1 user associated with the database - Follow this…

10 years ago