2 # OpenSSL example configuration file.
5 RANDFILE = $ENV::HOME/.rnd
7 ####################################################################
9 default_ca = CA_default # The default ca section
12 default_days = 365 # how long to certify for
13 default_crl_days = 365 # how long before next CRL
14 default_md = sha512 # use public key default MD
15 preserve = no # keep passed DN ordering
17 email_in_dn = yes # Don't concat the email in the DN
18 copy_extensions = copyall # Required to copy SANs from CSR to cert
19 name_opt = ca_default # Subject Name options
20 cert_opt = ca_default # Certificate field options
23 new_certs_dir = $dir/certs
24 database = $dir/index.txt
26 certificate = $dir/ca.crt
28 x509_extensions = ca_extensions
33 crlDistributionPoints=URI:http://www.somenet.org/somenet.crl
36 organizationName = match
37 countryName = optional
38 stateOrProvinceName = optional
39 localityName = optional
40 organizationalUnitName = optional
42 emailAddress = optional
44 ####################################################################
47 distinguished_name = req_distinguished_name
48 string_mask = utf8only
50 x509_extensions = v3_ca
51 req_extensions = v3_req
53 ####################################################################
54 [ req_distinguished_name ]
55 0.organizationName = Organization Name (eg, company)
56 0.organizationName_default = somenet.org
58 organizationalUnitName = Organizational Unit Name (eg, section)
59 organizationalUnitName_default = CertGen
61 commonName = Common Name (e.g. server FQDN or YOUR name)
64 emailAddress = Email Address
67 ####################################################################
69 basicConstraints = CA:FALSE
70 keyUsage = nonRepudiation, digitalSignature, keyEncipherment
71 subjectAltName = @alt_names
73 ####################################################################
75 subjectKeyIdentifier = hash
76 authorityKeyIdentifier = keyid:always,issuer
77 basicConstraints = CA:true
79 ####################################################################
81 basicConstraints = CA:true
82 keyUsage = keyCertSign, cRLSign
84 ####################################################################
86 # ALT_NAMES MUST BE THE LAST LINE.