Outils pour utilisateurs

Outils du site


tech:notes_http_strict_transport_security_-_hsts

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:notes_http_strict_transport_security_-_hsts [2026/09/18 11:04] – créée Jean-Baptistetech:notes_http_strict_transport_security_-_hsts [2026/09/18 13:12] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 <!DOCTYPE markdown> <!DOCTYPE markdown>
-{{tag>Brouillon HTTP Sécurité}}+{{tag>Brouillon HTTP Sécurité Nginx}}
  
 # Notes HTTP Strict Transport Security - HSTS # Notes HTTP Strict Transport Security - HSTS
 +
 +Voir :
 +* https://www.chromium.org/hsts
 +
 +
 +## Pb
 +
 +
 +### Err - Le serveur a présenté des informations de transparence du certificat insuffisantes
  
 ~~~ ~~~
Ligne 10: Ligne 19:
 HTTP Public Key Pinning : false HTTP Public Key Pinning : false
 ~~~ ~~~
 +
 +
 +HTTP Public Key Pinning (HPKP) is an obsolete Internet security
 +Source : https://en.wikipedia.org/wiki/HTTP_Public_Key_Pinning
 +
 +
 +#### Solution
 +
 +~~~nginx
 +server {
 +    server_name wiki.acme.com;
 +    
 +    # Ligne à ajouter :
 +    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
 +    ...
 +    }
 +~~~
 +
 +~~~bash
 +systemctl reload nginx
 +~~~
 +
 +
 +
 +
 +
  
  
tech/notes_http_strict_transport_security_-_hsts.1789722257.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki