2 # OpenSSL example configuration file for automated certificate creation.
5 # This definition stops the following lines choking if HOME or CN
11 # Comment out the next line to ignore configuration errors
12 config_diagnostics = 1
14 ####################################################################
17 default_keyfile = privkey.pem
18 # Don't prompt for fields: use those in section directly
20 distinguished_name = req_distinguished_name
21 x509_extensions = v3_ca # The extensions to add to the self signed cert
22 string_mask = utf8only
24 # req_extensions = v3_req # The extensions to add to a certificate request
26 [ req_distinguished_name ]
29 organizationName = OpenSSL Group
30 # Take CN from environment so it can come from a script.
35 # These extensions are added when 'ca' signs a request for an end entity
38 basicConstraints=critical, CA:FALSE
39 keyUsage=critical, nonRepudiation, digitalSignature, keyEncipherment
41 # PKIX recommendations harmless if included in all certificates.
42 subjectKeyIdentifier=hash
43 authorityKeyIdentifier=keyid
44 # OCSP responder certificate
47 basicConstraints=critical, CA:FALSE
48 keyUsage=critical, nonRepudiation, digitalSignature, keyEncipherment
50 # PKIX recommendations harmless if included in all certificates.
51 subjectKeyIdentifier=hash
52 authorityKeyIdentifier=keyid
53 extendedKeyUsage=OCSPSigning
57 # These extensions are added when 'ca' signs a request for an end entity
60 basicConstraints=critical, CA:FALSE
61 keyUsage=critical, keyAgreement
63 # PKIX recommendations harmless if included in all certificates.
64 subjectKeyIdentifier=hash
65 authorityKeyIdentifier=keyid
70 # Extensions for a typical CA
72 # PKIX recommendation.
74 subjectKeyIdentifier=hash
75 authorityKeyIdentifier=keyid:always
76 basicConstraints = critical,CA:true
77 keyUsage = critical, cRLSign, keyCertSign
79 # Minimal CA entry to allow generation of CRLs.