2 # OpenSSL configuration file to create apps directory certificates
5 # This definition stops the following lines choking if HOME or CN
10 ####################################################################
13 default_keyfile = privkey.pem
14 # Don't prompt for fields: use those in section directly
16 distinguished_name = req_distinguished_name
17 x509_extensions = v3_ca # The extensions to add to the self signed cert
18 string_mask = utf8only
20 # req_extensions = v3_req # The extensions to add to a certificate request
22 [ req_distinguished_name ]
25 organizationName = OpenSSL Group
26 organizationalUnitName = FOR TESTING PURPOSES ONLY
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
40 # These extensions are added when 'ca' signs a request for an end entity
43 basicConstraints=critical, CA:FALSE
44 keyUsage=critical, nonRepudiation, digitalSignature, keyAgreement
46 # PKIX recommendations harmless if included in all certificates.
47 subjectKeyIdentifier=hash
48 authorityKeyIdentifier=keyid
53 # Extensions for a typical CA
55 # PKIX recommendation.
57 subjectKeyIdentifier=hash
58 authorityKeyIdentifier=keyid:always
59 basicConstraints = critical,CA:true
60 keyUsage = critical, cRLSign, keyCertSign