OpenSSL: update to 1.0.2a
[tomato.git] / release / src / router / openssl / test / smime-certs / ca.cnf
blob5e8b108654b331305cdaf03e1aea221ca9d32e40
2 # OpenSSL example configuration file for automated certificate creation.
5 # This definition stops the following lines choking if HOME or CN
6 # is undefined.
7 HOME                    = .
8 RANDFILE                = $ENV::HOME/.rnd
9 CN                      = "Not Defined"
10 default_ca              = ca
12 ####################################################################
13 [ req ]
14 default_bits            = 2048
15 default_keyfile         = privkey.pem
16 # Don't prompt for fields: use those in section directly
17 prompt                  = no
18 distinguished_name      = req_distinguished_name
19 x509_extensions = v3_ca # The extentions to add to the self signed cert
20 string_mask = utf8only
22 # req_extensions = v3_req # The extensions to add to a certificate request
24 [ req_distinguished_name ]
25 countryName                     = UK
27 organizationName                = OpenSSL Group
28 # Take CN from environment so it can come from a script.
29 commonName                      = $ENV::CN
31 [ usr_cert ]
33 # These extensions are added when 'ca' signs a request for an end entity
34 # certificate
36 basicConstraints=critical, CA:FALSE
37 keyUsage=critical, nonRepudiation, digitalSignature, keyEncipherment
39 # PKIX recommendations harmless if included in all certificates.
40 subjectKeyIdentifier=hash
41 authorityKeyIdentifier=keyid
43 [ dh_cert ]
45 # These extensions are added when 'ca' signs a request for an end entity
46 # DH certificate
48 basicConstraints=critical, CA:FALSE
49 keyUsage=critical, keyAgreement
51 # PKIX recommendations harmless if included in all certificates.
52 subjectKeyIdentifier=hash
53 authorityKeyIdentifier=keyid
55 [ v3_ca ]
58 # Extensions for a typical CA
60 # PKIX recommendation.
62 subjectKeyIdentifier=hash
63 authorityKeyIdentifier=keyid:always
64 basicConstraints = critical,CA:true
65 keyUsage = critical, cRLSign, keyCertSign