aboutsummaryrefslogtreecommitdiff
path: root/profiles/ocsp.nix
blob: d56d8df0e5a552227f0a1c113d862a1822f68028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ }: {
  meta.description = ''
    The Online Certificate Status Protocol is used to distrust revoked certificates.
    When a new TLS connection is established, and OCSP stapling is not used, the browser checks with the
    responsible certificate authority whether the received certificate is still valid.
    It should not be disabled for security-sensitive situations, but it may be disabled for privacy reasons.
  '';

  enabled.preferences = {
    security.OCSP = {
      enabled = 1;
      # OCSP is useless, if the response is not mandatory
      require = true;
    };

    security.ssl = {
      enable_ocsp_stapling = true;
      enable_ocsp_must_staple = true;
    };
  };

  disabled.preferences = {
    security.OCSP.enabled = 0;
  };
}