mirror of
https://github.com/openssl/openssl.git
synced 2026-05-07 20:12:39 +00:00
16e5d81a61
Add tests for suppression of skid/akid via explicit "none" values and per-keyword "nonss" qualifiers and update docs. Signing of X509 certs and X509_REQ CSRs rejects empty AKID/SKID extensions, document and test this behaviour. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> MergeDate: Sat Feb 28 15:22:53 2026 (Merged from https://github.com/openssl/openssl/pull/29057)
109 lines
2.5 KiB
INI
109 lines
2.5 KiB
INI
|
|
# Comment out the next line to ignore configuration errors
|
|
config_diagnostics = 1
|
|
|
|
CN2 = Brother 2
|
|
|
|
####################################################################
|
|
[ req ]
|
|
distinguished_name = req_distinguished_name
|
|
encrypt_rsa_key = no
|
|
default_md = sha1
|
|
req_extensions = empty
|
|
x509_extensions = minimal
|
|
|
|
[ req_distinguished_name ]
|
|
countryName = Country Name (2 letter code)
|
|
countryName_value = AU
|
|
organizationName = Organization Name (eg, company)
|
|
organizationName_value = Dodgy Brothers
|
|
commonName = Common Name (eg, YOUR name)
|
|
commonName_value = Dodgy CA
|
|
|
|
####################################################################
|
|
[ userreq ]
|
|
distinguished_name = user_dn
|
|
encrypt_rsa_key = no
|
|
default_md = sha256
|
|
prompt = no
|
|
|
|
[ user_dn ]
|
|
countryName = AU
|
|
organizationName = Dodgy Brothers
|
|
0.commonName = Brother 1
|
|
1.commonName = $ENV::CN2
|
|
|
|
[ empty ]
|
|
|
|
[ minimal ]
|
|
subjectKeyIdentifier = hash
|
|
authorityKeyIdentifier = keyid:nonss
|
|
|
|
[ v3_skid ]
|
|
subjectKeyIdentifier = hash
|
|
|
|
[ v3_akid ]
|
|
# With just the AKID, we can't produce keyids for self-signed certs.
|
|
authorityKeyIdentifier = keyid:nonss, issuer
|
|
|
|
[ v3_askid ]
|
|
subjectKeyIdentifier = hash
|
|
authorityKeyIdentifier = keyid:always
|
|
|
|
[ v3_ee ]
|
|
subjectKeyIdentifier = hash
|
|
authorityKeyIdentifier = keyid,issuer:always
|
|
basicConstraints = CA:false
|
|
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
|
|
|
|
[ v3_ee_dsa ]
|
|
subjectKeyIdentifier = hash
|
|
authorityKeyIdentifier = keyid:always
|
|
basicConstraints = CA:false
|
|
keyUsage = nonRepudiation, digitalSignature
|
|
|
|
[ v3_ee_ec ]
|
|
subjectKeyIdentifier = hash
|
|
authorityKeyIdentifier = keyid:always
|
|
basicConstraints = CA:false
|
|
keyUsage = nonRepudiation, digitalSignature, keyAgreement
|
|
|
|
####################################################################
|
|
[ ca ]
|
|
default_ca = CA_default
|
|
|
|
[ CA_default ]
|
|
dir = ./demoCA
|
|
certs = $dir/certs
|
|
crl_dir = $dir/crl
|
|
database = $dir/index.txt
|
|
new_certs_dir = $dir/newcerts
|
|
certificate = $dir/cacert.pem
|
|
serial = $dir/serial
|
|
crl = $dir/crl.pem
|
|
private_key = $dir/private/cakey.pem
|
|
x509_extensions = v3_ca
|
|
name_opt = ca_default
|
|
cert_opt = ca_default
|
|
default_days = 365
|
|
default_crl_days= 30
|
|
default_md = sha1
|
|
preserve = no
|
|
policy = policy_anything
|
|
|
|
[ policy_anything ]
|
|
countryName = optional
|
|
stateOrProvinceName = optional
|
|
localityName = optional
|
|
organizationName = optional
|
|
organizationalUnitName = optional
|
|
commonName = supplied
|
|
emailAddress = optional
|
|
|
|
[ v3_ca ]
|
|
subjectKeyIdentifier = hash
|
|
authorityKeyIdentifier = keyid:nonss,issuer:nonss
|
|
basicConstraints = critical,CA:true,pathlen:1
|
|
keyUsage = cRLSign, keyCertSign
|
|
issuerAltName = issuer:copy
|