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