summaryrefslogtreecommitdiff
path: root/docs/critical/ocsp.rst
blob: 1d4c40a2d6031e8e039633f27d4cc2edd56562a5 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
=====
Ocsp
=====

.. copy content structure from critical/template.rst and adapt to the needs for
   this system

Critical Configuration items
============================

Keys and X.509 certificates
---------------------------

.. sslcert:: ocsp.cacert.org
   :altnames:   DNS:ocsp.cacert.org
   :certfile:   /etc/lighttpd/ssl/ocsp.cacert.org.crt
   :keyfile:    /etc/lighttpd/ssl/ocsp.cacert.org.key
   :serial:     02CC47
   :expiration: Nov 18 19:03:01 2020 GMT
   :sha1fp:     85:42:E3:DC:42:F2:7C:C2:B2:02:9F:47:16:34:02:55:BE:92:AA:17
   :issuer:     CAcert Class 3 Root

.. sslcert:: ocsp.cacert.org class1 (issued with X509v3 Extended Key Usage: OCSP Signing)
   :altnames:
   :certfile:   /usr/local/etc/ocspd/certs/class1.crt
   :keyfile:    /usr/local/etc/ocspd/private/class1.key
   :serial:     1320EE
   :expiration: Aug 25 09:45:00 2019 GMT
   :sha1fp:     68:08:77:DD:F2:3A:8C:2F:A0:DC:EC:6B:BD:C6:71:80:DD:44:3A:C7
   :issuer:     CAcert Class 1 Root

.. sslcert:: ocsp.cacert.org class3 (issued with X509v3 Extended Key Usage: OCSP Signing)
   :altnames:
   :certfile:   /usr/local/etc/ocspd/certs/class3.crt
   :keyfile:    /usr/local/etc/ocspd/private/class1.key
   :serial:     02B395
   :expiration: Aug 25 09:44:51 2019 GMT
   :sha1fp:     AA:F0:AE:3D:0A:11:47:6C:9F:1E:EB:23:15:15:38:40:CA:29:0D:45
   :issuer:     CAcert Class 3 Root

Note: generating a CSR with OCSP Signing flag set can be done with an openssl config file like this:

.. code-block:: text

   [ req ]
   distinguished_name      = req_distinguished_name
   prompt                  = no
   req_extensions          = ocsp_req
   
   [ req_distinguished_name ]
   countryName             = AU
   stateOrProvinceName     = NSW
   localityName            = Sydney
   0.organizationName      = CAcert Inc.
   organizationalUnitName  = Server Administration
   commonName              = ocsp.cacert.org
   emailAddress            = critical-admin@cacert.org
   
   [ ocsp_req ]
   basicConstraints=CA:FALSE
   extendedKeyUsage=1.3.6.1.5.5.7.3.2, 1.3.6.1.5.5.7.3.1, 1.3.6.1.5.5.7.3.9

To sign such a CSR while retaining the OCSP Signing flag in the generated certificate, there is some dark magic involved: you have to have the admin flag set and check a box deep down on the second page of the new cert process.