1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
[ ca ]
default_ca = CA_default
[ CA_default ]
dir = tests/trust_dir
certificate = $dir/signing-ca.crt
cert_opt = ca_default
certs = $dir/ca.db.certs
crl_dir = $dir/crl
database = $dir/ca.db.index
default_crl_days = 30
default_days = 365
default_md = sha1
name_opt = ca_default
new_certs_dir = $dir/ca.db.certs
policy = policy_match
preserve = no
private_key = $dir/signing-ca.key
RANDFILE = $dir/ca.db.rand
serial = $dir/ca.db.serial
unique_subject = yes
x509_extensions = usr_cert
[ policy_match ]
commonName = supplied
countryName = match
emailAddress = optional
localityName = match
organizationalUnitName = optional
organizationName = match
stateOrProvinceName = match
[ policy_anything ]
commonName = supplied
countryName = optional
emailAddress = optional
localityName = optional
organizationalUnitName = optional
organizationName = optional
stateOrProvinceName = optional
[ req ]
attributes = req_attributes
default_bits = 4096
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
req_extensions = v3_req
string_mask = nombstr
x509_extensions = v3_ca
[ req_distinguished_name ]
[ req_attributes ]
[ usr_cert ]
authorityKeyIdentifier = keyid,issuer:always
basicConstraints = CA:FALSE
nsComment = "OpenSSL Generated Certificate"
subjectKeyIdentifier = hash
[ v3_req ]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[ alt_names ]
DNS.1 = alt2.mongodb.com
DNS.2 = *.wild.mongodb.com
IP.1 = 192.168.1.1
IP.2 = 10.0.0.1
[ v3_ca ]
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
basicConstraints = CA:true
[ crl_ext ]
authorityKeyIdentifier = keyid:always,issuer:always
|