You've already forked docs
126 lines
3.4 KiB
Plaintext
126 lines
3.4 KiB
Plaintext
|
|
|
||
|
|
[ 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
|
||
|
|
|
||
|
|
[ 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
|
||
|
|
|
||
|
|
[ usr_cert ]
|
||
|
|
|
||
|
|
basicConstraints = CA:FALSE
|
||
|
|
nsCertType = client, email
|
||
|
|
nsComment = "OpenSSL Generated Client Certificate"
|
||
|
|
subjectKeyIdentifier = hash
|
||
|
|
authorityKeyIdentifier = keyid,issuer
|
||
|
|
keyUsage = critical, nonRepudiation, digitalSignature, keyEncipherment
|
||
|
|
extendedKeyUsage = clientAuth, emailProtection
|
||
|
|
copy_extensions = copy
|
||
|
|
|
||
|
|
[ server_cert ]
|
||
|
|
|
||
|
|
basicConstraints = CA:FALSE
|
||
|
|
nsCertType = server
|
||
|
|
nsComment = "OpenSSL Generated Server Certificate"
|
||
|
|
subjectKeyIdentifier = hash
|
||
|
|
authorityKeyIdentifier = keyid,issuer:always
|
||
|
|
keyUsage = critical, digitalSignature, keyEncipherment
|
||
|
|
extendedKeyUsage = serverAuth
|
||
|
|
copy_extensions = copy # using this to copy alternative names
|
||
|
|
|
||
|
|
[ crl_ext ]
|
||
|
|
|
||
|
|
authorityKeyIdentifier=keyid:always
|
||
|
|
|
||
|
|
|
||
|
|
[ ocsp ]
|
||
|
|
|
||
|
|
basicConstraints = CA:FALSE
|
||
|
|
subjectKeyIdentifier = hash
|
||
|
|
authorityKeyIdentifier = keyid,issuer
|
||
|
|
keyUsage = critical, digitalSignature
|
||
|
|
extendedKeyUsage = critical, OCSPSigning
|