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 x509_extensions = ca_extensions # The extensions to add to the cert
20 email_in_dn = no # Don't concat the email in the DN
21 copy_extensions = copyall # Required to copy SANs from CSR to cert
24 new_certs_dir = $dir/certs
25 database = $dir/index.txt
27 certificate = $dir/ca.crt
32 organizationName = match
33 countryName = optional
34 stateOrProvinceName = optional
35 localityName = optional
36 organizationalUnitName = optional
38 emailAddress = optional
40 ####################################################################
43 distinguished_name = req_distinguished_name
44 string_mask = utf8only
46 x509_extensions = v3_ca
47 req_extensions = v3_req
49 ####################################################################
50 [ req_distinguished_name ]
51 0.organizationName = Organization Name (eg, company)
52 0.organizationName_default = somenet.org
54 organizationalUnitName = Organizational Unit Name (eg, section)
55 organizationalUnitName_default = CertGen
57 commonName = Common Name (e.g. server FQDN or YOUR name)
60 emailAddress = Email Address
63 ####################################################################
65 basicConstraints = CA:FALSE
66 keyUsage = nonRepudiation, digitalSignature, keyEncipherment
67 subjectAltName = @alt_names
69 ####################################################################
71 subjectKeyIdentifier = hash
72 authorityKeyIdentifier = keyid:always,issuer
73 basicConstraints = CA:true
75 ####################################################################
77 basicConstraints = CA:true
78 keyUsage = keyCertSign, cRLSign
80 ####################################################################
82 # ALT_NAMES MUST BE THE LAST LINE.