doc:httpd
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
doc:httpd [2015/04/22 12:23] – [Apache HTTP Server] lien vers le site du projet bertrand.bonnefoy-claudet | doc:httpd [2016/10/14 17:09] (Version actuelle) – [Exemple : Apache 2.4 sur Debian Jessie] david.sinquin | ||
---|---|---|---|
Ligne 22: | Ligne 22: | ||
===== TLS ===== | ===== TLS ===== | ||
- | Pour la configuration | + | D'une manière générale, |
- | <code> | + | ==== Exemple : Apache 2.4 sur Debian Jessie ==== |
+ | |||
+ | Dans la configuration du vhost : | ||
+ | <file apache / | ||
< | < | ||
... | ... | ||
SSLEngine on | SSLEngine on | ||
- | SSLCertificateFile | + | SSLCertificateFile |
SSLCertificateChainFile / | SSLCertificateChainFile / | ||
SSLCertificateKeyFile | SSLCertificateKeyFile | ||
- | SSLCACertificateFile | + | SSLCACertificateFile |
- | + | ||
- | # intermediate configuration, | + | |
- | SSLProtocol | + | |
- | SSLCipherSuite | + | |
- | SSLHonorCipherOrder | + | |
- | + | ||
- | # HSTS (mod_headers is required) (15768000 seconds = 6 months) | + | |
- | Header always add Strict-Transport-Security " | + | |
... | ... | ||
</ | </ | ||
- | </code> | + | </file> |
+ | |||
+ | Les paramètres communs peuvent être avantageusement placés dans un fichier mis à part, mais ce n'est pas obligatoire. | ||
+ | |||
+ | <file apache / | ||
+ | # modern configuration : https:// | ||
+ | SSLProtocol | ||
+ | SSLCipherSuite | ||
+ | SSLHonorCipherOrder | ||
+ | SSLCompression | ||
+ | |||
+ | # HSTS (mod_headers is required) (15768000 seconds = 6 months) | ||
+ | Header always add Strict-Transport-Security " | ||
+ | |||
+ | # OCSP Stapling, only in httpd 2.3.3 and later | ||
+ | SSLUseStapling | ||
+ | SSLStaplingResponderTimeout 5 | ||
+ | SSLStaplingReturnResponderErrors off | ||
+ | SSLStaplingCache | ||
+ | </file> | ||
- | Pour éviter de les répéter dans chaque fichier de site, les paramètres généraux comme **SSLProtocol**, | + | Activer cette configuration séparée avec '' |
doc/httpd.1429705427.txt.gz · Dernière modification : 2015/04/22 12:23 de bertrand.bonnefoy-claudet