]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/CAss.cnf
Use .cnf for config files, not .conf
[thirdparty/openssl.git] / test / CAss.cnf
CommitLineData
d02b48c6 1
d02b48c6
RE
2####################################################################
3[ req ]
fec66938 4default_bits = 2048
d02b48c6
RE
5default_keyfile = keySS.pem
6distinguished_name = req_distinguished_name
7encrypt_rsa_key = no
8default_md = sha1
9
10[ req_distinguished_name ]
11countryName = Country Name (2 letter code)
12countryName_default = AU
13countryName_value = AU
14
15organizationName = Organization Name (eg, company)
16organizationName_value = Dodgy Brothers
17
18commonName = Common Name (eg, YOUR name)
19commonName_value = Dodgy CA
4342c5c1
RL
20
21####################################################################
22[ ca ]
23default_ca = CA_default # The default ca section
24
25####################################################################
26[ CA_default ]
27
28dir = ./demoCA # Where everything is kept
29certs = $dir/certs # Where the issued certs are kept
30crl_dir = $dir/crl # Where the issued crl are kept
31database = $dir/index.txt # database index file.
32#unique_subject = no # Set to 'no' to allow creation of
5e355e0c 33 # several certificates with same subject.
4342c5c1
RL
34new_certs_dir = $dir/newcerts # default place for new certs.
35
36certificate = $dir/cacert.pem # The CA certificate
37serial = $dir/serial # The current serial number
38crl = $dir/crl.pem # The current CRL
39private_key = $dir/private/cakey.pem# The private key
4342c5c1 40
478b50cf 41x509_extensions = v3_ca # The extensions to add to the cert
4342c5c1
RL
42
43name_opt = ca_default # Subject Name options
44cert_opt = ca_default # Certificate field options
45
46default_days = 365 # how long to certify for
47default_crl_days= 30 # how long before next CRL
48default_md = md5 # which md to use.
49preserve = no # keep passed DN ordering
50
51policy = policy_anything
52
53[ policy_anything ]
54countryName = optional
55stateOrProvinceName = optional
56localityName = optional
57organizationName = optional
58organizationalUnitName = optional
59commonName = supplied
60emailAddress = optional
61
62
63
64[ v3_ca ]
65subjectKeyIdentifier=hash
66authorityKeyIdentifier=keyid:always,issuer:always
a7be5759 67basicConstraints = critical,CA:true,pathlen:1
6951c23a
RL
68keyUsage = cRLSign, keyCertSign
69issuerAltName=issuer:copy