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
44 # These extensions are added when 'ca' signs a request for an end entity
47 basicConstraints=critical, CA:FALSE
48 keyUsage=critical, keyAgreement
50 # PKIX recommendations harmless if included in all certificates.
51 subjectKeyIdentifier=hash
52 authorityKeyIdentifier=keyid
57 # Extensions for a typical CA
59 # PKIX recommendation.
61 subjectKeyIdentifier=hash
62 authorityKeyIdentifier=keyid:always
63 basicConstraints = critical,CA:true
64 keyUsage = critical, cRLSign, keyCertSign