1 # Defaults in the event they're not set in the environment
12 # The default test root, used to generate certificates and CRLs.
15 key_size = $ENV::KEY_SIZE
17 cert_type = $ENV::CERT_TYPE
18 type = $key_size-$algo-$cert_type
19 database = $dir/$type-index.txt
21 serial = $dir/$type-serial
22 certificate = $dir/$type.pem
23 private_key = $dir/$type.key
28 policy = policy_anything
30 copy_extensions = copy
33 # Extensions to add when signing a request for an EE cert
34 basicConstraints = critical, CA:false
35 subjectKeyIdentifier = hash
36 authorityKeyIdentifier = keyid:always
37 extendedKeyUsage = serverAuth,clientAuth
40 # Extensions to add when signing a request for an intermediate/CA cert
41 basicConstraints = critical, CA:true
42 subjectKeyIdentifier = hash
43 #authorityKeyIdentifier = keyid:always
44 keyUsage = critical, keyCertSign, cRLSign
47 # Extensions to add when signing a CRL
48 authorityKeyIdentifier = keyid:always
51 # Default signing policy
52 countryName = optional
53 stateOrProvinceName = optional
54 localityName = optional
55 organizationName = optional
56 organizationalUnitName = optional
58 emailAddress = optional
61 # The request section used to generate the root CA certificate. This should
62 # not be used to generate end-entity certificates. For certificates other
63 # than the root CA, see README to find the appropriate configuration file
64 # (ie: openssl_cert.cnf).
65 default_bits = $ENV::KEY_SIZE
67 string_mask = utf8only
70 distinguished_name = $ENV::CA_NAME
71 x509_extensions = req_ca_exts
85 CN = Test Intermediate CA
88 CN = $ENV::CA_COMMON_NAME
91 basicConstraints = critical, CA:true
92 keyUsage = critical, keyCertSign, cRLSign
93 subjectKeyIdentifier = hash