2025-11-07 03:44:26 +00:00
|
|
|
|
|
|
|
|
[ ca ]
|
|
|
|
|
default_ca = CA_default
|
|
|
|
|
|
|
|
|
|
[ CA_default ]
|
|
|
|
|
dir = /path/to/intermediate_ca
|
|
|
|
|
certs = $dir/certs
|
|
|
|
|
crl_dir = $dir/crl
|
|
|
|
|
new_certs_dir = $dir/newcerts
|
|
|
|
|
database = $dir/index.txt
|
|
|
|
|
serial = $dir/serial
|
|
|
|
|
RANDFILE = $dir/private/.rand
|
|
|
|
|
|
|
|
|
|
private_key = $dir/private/intermediate.key
|
|
|
|
|
certificate = $dir/certs/intermediate.crt
|
|
|
|
|
|
|
|
|
|
crlnumber = $dir/crlnumber
|
|
|
|
|
crl = $dir/crl/intermediate.crl
|
|
|
|
|
crl_extensions = crl_ext
|
|
|
|
|
default_crl_days = 30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default_md = sha256
|
|
|
|
|
|
|
|
|
|
name_opt = ca_default
|
|
|
|
|
cert_opt = ca_default
|
|
|
|
|
default_days = 375
|
|
|
|
|
preserve = no
|
|
|
|
|
policy = policy_loose
|
2026-02-28 23:03:36 +00:00
|
|
|
copy_extensions = copy
|
2025-11-07 03:44:26 +00:00
|
|
|
|
|
|
|
|
[ policy_strict ]
|
|
|
|
|
|
|
|
|
|
countryName = match
|
|
|
|
|
stateOrProvinceName = match
|
|
|
|
|
organizationName = match
|
|
|
|
|
organizationalUnitName = optional
|
|
|
|
|
commonName = supplied
|
|
|
|
|
emailAddress = optional
|
|
|
|
|
|
|
|
|
|
[ policy_loose ]
|
|
|
|
|
|
|
|
|
|
countryName = optional
|
|
|
|
|
stateOrProvinceName = optional
|
|
|
|
|
localityName = optional
|
|
|
|
|
organizationName = optional
|
|
|
|
|
organizationalUnitName = optional
|
|
|
|
|
commonName = supplied
|
|
|
|
|
emailAddress = optional
|
|
|
|
|
|
|
|
|
|
[ req ]
|
|
|
|
|
|
|
|
|
|
default_bits = 2048
|
|
|
|
|
distinguished_name = req_distinguished_name
|
|
|
|
|
string_mask = utf8only
|
|
|
|
|
|
|
|
|
|
default_md = sha256
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
x509_extensions = server_cert
|
|
|
|
|
|
|
|
|
|
[ req_distinguished_name ]
|
|
|
|
|
|
|
|
|
|
countryName = Country Name (2 letter code)
|
|
|
|
|
stateOrProvinceName = State or Province Name
|
|
|
|
|
localityName = Locality Name
|
|
|
|
|
0.organizationName = Organization Name
|
|
|
|
|
organizationalUnitName = Organizational Unit Name
|
|
|
|
|
commonName = Common Name
|
|
|
|
|
emailAddress = Email Address
|
|
|
|
|
|
|
|
|
|
countryName_default = XX
|
|
|
|
|
stateOrProvinceName_default = StateOrProvince
|
|
|
|
|
localityName_default = City/Locality
|
|
|
|
|
0.organizationName_default = OU
|
|
|
|
|
organizationalUnitName_default =
|
|
|
|
|
emailAddress_default =
|
|
|
|
|
|
|
|
|
|
[ v3_ca ]
|
|
|
|
|
# may not need this extension as this is to sign user/server certificates
|
|
|
|
|
subjectKeyIdentifier = hash
|
|
|
|
|
authorityKeyIdentifier = keyid:always,issuer
|
|
|
|
|
basicConstraints = critical, CA:true
|
|
|
|
|
keyUsage = critical, digitalSignature, cRLSign, keyCertSign
|
|
|
|
|
|
|
|
|
|
[ v3_intermediate_ca ]
|
|
|
|
|
# may not need this extension as this is to sign user/server certificates
|
|
|
|
|
subjectKeyIdentifier = hash
|
|
|
|
|
authorityKeyIdentifier = keyid:always,issuer
|
|
|
|
|
basicConstraints = critical, CA:true, pathlen:0
|
|
|
|
|
keyUsage = critical, digitalSignature, cRLSign, keyCertSign
|
|
|
|
|
|
2026-04-10 03:28:56 +00:00
|
|
|
[ peer_cert ]
|
|
|
|
|
basicConstraints = CA:FALSE
|
|
|
|
|
subjectKeyIdentifier = hash
|
|
|
|
|
authorityKeyIdentifier = keyid,issuer:always
|
|
|
|
|
keyUsage = critical, digitalSignature, keyEncipherment
|
|
|
|
|
extendedKeyUsage = serverAuth, clientAuth
|
2025-11-07 03:44:26 +00:00
|
|
|
|
2026-04-10 03:28:56 +00:00
|
|
|
[ client_cert ]
|
2025-11-07 03:44:26 +00:00
|
|
|
basicConstraints = CA:FALSE
|
|
|
|
|
subjectKeyIdentifier = hash
|
|
|
|
|
authorityKeyIdentifier = keyid,issuer
|
2026-04-10 03:28:56 +00:00
|
|
|
keyUsage = critical, digitalSignature, keyEncipherment
|
|
|
|
|
extendedKeyUsage = clientAuth
|
2025-11-07 03:44:26 +00:00
|
|
|
|
2026-04-10 03:28:56 +00:00
|
|
|
[ identity_cert ]
|
2025-11-07 03:44:26 +00:00
|
|
|
basicConstraints = CA:FALSE
|
|
|
|
|
subjectKeyIdentifier = hash
|
2026-04-10 03:28:56 +00:00
|
|
|
authorityKeyIdentifier = keyid,issuer
|
|
|
|
|
keyUsage = critical, nonRepudiation, digitalSignature, keyEncipherment
|
|
|
|
|
extendedKeyUsage = clientAuth, emailProtection
|
2025-11-07 03:44:26 +00:00
|
|
|
|
|
|
|
|
[ crl_ext ]
|
|
|
|
|
authorityKeyIdentifier=keyid:always
|
|
|
|
|
|
|
|
|
|
[ ocsp ]
|
|
|
|
|
basicConstraints = CA:FALSE
|
|
|
|
|
subjectKeyIdentifier = hash
|
|
|
|
|
authorityKeyIdentifier = keyid,issuer
|
|
|
|
|
keyUsage = critical, digitalSignature
|
|
|
|
|
extendedKeyUsage = critical, OCSPSigning
|