]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/ca-and-certs.cnf
Reduce the security bits for MD5 and SHA1 based signatures in TLS
[thirdparty/openssl.git] / test / ca-and-certs.cnf
CommitLineData
4e6e57cf
RS
1
2CN2 = Brother 2
3
4####################################################################
5[ req ]
6default_bits = 2048
7default_keyfile = keySS.pem
8distinguished_name = req_distinguished_name
9encrypt_rsa_key = no
10default_md = sha1
11
12[ req_distinguished_name ]
13countryName = Country Name (2 letter code)
14countryName_value = AU
15organizationName = Organization Name (eg, company)
16organizationName_value = Dodgy Brothers
17commonName = Common Name (eg, YOUR name)
18commonName_value = Dodgy CA
19
20####################################################################
21[ userreq ]
22default_bits = 2048
23default_keyfile = keySS.pem
24distinguished_name = user_dn
25encrypt_rsa_key = no
26default_md = sha256
27prompt = no
28
29[ user_dn ]
30countryName = AU
31organizationName = Dodgy Brothers
320.commonName = Brother 1
331.commonName = $ENV::CN2
34
35[ v3_ee ]
36subjectKeyIdentifier = hash
37authorityKeyIdentifier = keyid,issuer:always
38basicConstraints = CA:false
39keyUsage = nonRepudiation, digitalSignature, keyEncipherment
40
41[ v3_ee_dsa ]
42subjectKeyIdentifier = hash
43authorityKeyIdentifier = keyid:always
44basicConstraints = CA:false
45keyUsage = nonRepudiation, digitalSignature
46
47[ v3_ee_ec ]
48subjectKeyIdentifier = hash
49authorityKeyIdentifier = keyid:always
50basicConstraints = CA:false
51keyUsage = nonRepudiation, digitalSignature, keyAgreement
52
53####################################################################
54[ ca ]
55default_ca = CA_default
56
57[ CA_default ]
58dir = ./demoCA
59certs = $dir/certs
60crl_dir = $dir/crl
61database = $dir/index.txt
62new_certs_dir = $dir/newcerts
63certificate = $dir/cacert.pem
64serial = $dir/serial
65crl = $dir/crl.pem
66private_key = $dir/private/cakey.pem
67x509_extensions = v3_ca
68name_opt = ca_default
69cert_opt = ca_default
70default_days = 365
71default_crl_days= 30
72default_md = sha1
73preserve = no
74policy = policy_anything
75
76[ policy_anything ]
77countryName = optional
78stateOrProvinceName = optional
79localityName = optional
80organizationName = optional
81organizationalUnitName = optional
82commonName = supplied
83emailAddress = optional
84
85[ v3_ca ]
86subjectKeyIdentifier = hash
87authorityKeyIdentifier = keyid:always,issuer:always
88basicConstraints = critical,CA:true,pathlen:1
89keyUsage = cRLSign, keyCertSign
90issuerAltName = issuer:copy