mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
92c03668c0
The change to a more configuration based approach to enable FIPS mode operation highlights a shortcoming in the default should do something approach we've taken for bad configuration files. Currently, a bad configuration file will be automatically loaded and once the badness is detected, it will silently stop processing the configuration and continue normal operations. This is good for remote servers, allowing changes to be made without bricking things. It's bad when a user thinks they've configured what they want but got something wrong and it still appears to work. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/16171)
61 lines
1.7 KiB
INI
61 lines
1.7 KiB
INI
|
|
## Config file for proxy certificate testing.
|
|
|
|
# Comment out the next line to ignore configuration errors
|
|
config_diagnostics = 1
|
|
|
|
[ req ]
|
|
distinguished_name = req_distinguished_name_p1
|
|
encrypt_rsa_key = no
|
|
default_md = sha256
|
|
|
|
[ req_distinguished_name_p1 ]
|
|
countryName = Country Name (2 letter code)
|
|
countryName_value = AU
|
|
organizationName = Organization Name (eg, company)
|
|
organizationName_value = Dodgy Brothers
|
|
0.commonName = Common Name (eg, YOUR name)
|
|
0.commonName_value = Brother 1
|
|
1.commonName = Common Name (eg, YOUR name)
|
|
1.commonName_value = Brother 2
|
|
2.commonName = Common Name (eg, YOUR name)
|
|
2.commonName_value = Proxy 1
|
|
|
|
[ proxy ]
|
|
basicConstraints = CA:FALSE
|
|
subjectKeyIdentifier = hash
|
|
authorityKeyIdentifier = keyid,issuer:always
|
|
proxyCertInfo = critical,language:id-ppl-anyLanguage,pathlen:1,policy:text:AB
|
|
|
|
####################################################################
|
|
|
|
[ proxy2_req ]
|
|
distinguished_name = req_distinguished_name_p2
|
|
encrypt_rsa_key = no
|
|
default_md = sha256
|
|
|
|
[ req_distinguished_name_p2 ]
|
|
countryName = Country Name (2 letter code)
|
|
countryName_value = AU
|
|
organizationName = Organization Name (eg, company)
|
|
organizationName_value = Dodgy Brothers
|
|
0.commonName = Common Name (eg, YOUR name)
|
|
0.commonName_value = Brother 1
|
|
1.commonName = Common Name (eg, YOUR name)
|
|
1.commonName_value = Brother 2
|
|
2.commonName = Common Name (eg, YOUR name)
|
|
2.commonName_value = Proxy 1
|
|
3.commonName = Common Name (eg, YOUR name)
|
|
3.commonName_value = Proxy 2
|
|
|
|
[ proxy_2 ]
|
|
basicConstraints = CA:FALSE
|
|
subjectKeyIdentifier = hash
|
|
authorityKeyIdentifier = keyid,issuer:always
|
|
proxyCertInfo = critical,@proxy_ext
|
|
|
|
[ proxy_ext ]
|
|
language = id-ppl-anyLanguage
|
|
pathlen = 0
|
|
policy = text:BC
|