2 # OpenSSL example configuration file for automated certificate creation.
5 # This definition stops the following lines choking if HOME or CN
11 ####################################################################
14 default_keyfile = privkey.pem
15 # Don't prompt for fields: use those in section directly
17 distinguished_name = req_distinguished_name
18 x509_extensions = v3_ca # The extensions to add to the self signed cert
19 string_mask = utf8only
21 # req_extensions = v3_req # The extensions to add to a certificate request
23 [ req_distinguished_name ]
26 organizationName = OpenSSL Group
27 # Take CN from environment so it can come from a script.
32 # These extensions are added when 'ca' signs a request for an end entity
35 basicConstraints=critical, CA:FALSE
36 keyUsage=critical, nonRepudiation, digitalSignature, keyEncipherment
38 # PKIX recommendations harmless if included in all certificates.
39 subjectKeyIdentifier=hash
40 authorityKeyIdentifier=keyid
41 # OCSP responder certificate
44 basicConstraints=critical, CA:FALSE
45 keyUsage=critical, nonRepudiation, digitalSignature, keyEncipherment
47 # PKIX recommendations harmless if included in all certificates.
48 subjectKeyIdentifier=hash
49 authorityKeyIdentifier=keyid
50 extendedKeyUsage=OCSPSigning
54 # These extensions are added when 'ca' signs a request for an end entity
57 basicConstraints=critical, CA:FALSE
58 keyUsage=critical, keyAgreement
60 # PKIX recommendations harmless if included in all certificates.
61 subjectKeyIdentifier=hash
62 authorityKeyIdentifier=keyid
67 # Extensions for a typical CA
69 # PKIX recommendation.
71 subjectKeyIdentifier=hash
72 authorityKeyIdentifier=keyid:always
73 basicConstraints = critical,CA:true
74 keyUsage = critical, cRLSign, keyCertSign
76 # Minimal CA entry to allow generation of CRLs.