]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/test.cnf
Add a test for SSL_CTX_new_with_libctx()
[thirdparty/openssl.git] / test / test.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[ ca ]
8default_ca = CA_default # The default ca section
9
10####################################################################
11[ CA_default ]
12
13dir = ./demoCA # Where everything is kept
14certs = $dir/certs # Where the issued certs are kept
15crl_dir = $dir/crl # Where the issued crl are kept
16database = $dir/index.txt # database index file.
17new_certs_dir = $dir/new_certs # default place for new certs.
18
19certificate = $dir/CAcert.pem # The CA certificate
20serial = $dir/serial # The current serial number
21crl = $dir/crl.pem # The current CRL
22private_key = $dir/private/CAkey.pem# The private key
d02b48c6
RE
23
24default_days = 365 # how long to certify for
25default_crl_days= 30 # how long before next CRL
26default_md = md5 # which md to use.
27
28# A few difference way of specifying how similar the request should look
29# For type CA, the listed attributes must be the same, and the optional
30# and supplied fields are just that :-)
31policy = policy_match
32
33# For the CA policy
34[ policy_match ]
35countryName = match
36stateOrProvinceName = match
37organizationName = match
38organizationalUnitName = optional
39commonName = supplied
40emailAddress = optional
41
42# For the 'anything' policy
43# At this point in time, you must list all acceptable 'object'
44# types.
45[ policy_anything ]
46countryName = optional
47stateOrProvinceName = optional
48localityName = optional
49organizationName = optional
50organizationalUnitName = optional
51commonName = supplied
52emailAddress = optional
53
54####################################################################
55[ req ]
fec66938 56default_bits = 2048
d02b48c6
RE
57default_keyfile = testkey.pem
58distinguished_name = req_distinguished_name
59encrypt_rsa_key = no
60
61[ req_distinguished_name ]
62countryName = Country Name (2 letter code)
63countryName_default = AU
64countryName_value = AU
65
66stateOrProvinceName = State or Province Name (full name)
67stateOrProvinceName_default = Queensland
68stateOrProvinceName_value =
69
70localityName = Locality Name (eg, city)
71localityName_value = Brisbane
72
73organizationName = Organization Name (eg, company)
74organizationName_default =
75organizationName_value = CryptSoft Pty Ltd
76
77organizationalUnitName = Organizational Unit Name (eg, section)
78organizationalUnitName_default =
79organizationalUnitName_value = .
80
81commonName = Common Name (eg, YOUR name)
82commonName_value = Eric Young
83
84emailAddress = Email Address
85emailAddress_value = eay@mincom.oz.au