blob: 94e59545df06c0b8c95da0701d578875fc1edeb2 [file] [log] [blame]
Paul Bakker5121ce52009-01-03 21:22:43 +00001##================================================================
2##============== Example OpenSSL configuration file ==============
3##================================================================
4
5# References:
6#
7# /etc/ssl/openssl.conf
8# http://www.openssl.org/docs/apps/config.html
9# http://www.openssl.org/docs/apps/x509v3_config.html
10
11[ ca ]
12default_ca = my_ca
13
14[ my_ca ]
15certificate = test-ca.crt
16private_key = test-ca.key
17database = index
18serial = serial
19
20new_certs_dir = newcerts
21default_crl_days = 60
22default_days = 730
23default_md = sha1
24policy = my_policy
25x509_extensions = v3_usr
26
27[ my_policy ]
Paul Bakker222aa4b2009-01-14 22:44:12 +000028countryName = match
Paul Bakker5121ce52009-01-03 21:22:43 +000029organizationName = match
Paul Bakker5121ce52009-01-03 21:22:43 +000030commonName = supplied
Paul Bakker5121ce52009-01-03 21:22:43 +000031
32[ req ]
33distinguished_name = my_req_dn
34x509_extensions = v3_ca
35
36[ my_req_dn ]
37countryName = Country Name..............
Paul Bakker222aa4b2009-01-14 22:44:12 +000038countryName_default = NL
39organizationName = Organization Name.........
40organizationName_default = PolarSSL
Paul Bakker5121ce52009-01-03 21:22:43 +000041commonName = Common Name (required)....
42commonName_max = 64
Paul Bakker5121ce52009-01-03 21:22:43 +000043
44[ v3_ca ]
45basicConstraints = CA:TRUE
46subjectKeyIdentifier = hash
47authorityKeyIdentifier = keyid:always,issuer:always
48
49[ v3_usr ]
50basicConstraints = CA:FALSE
51subjectKeyIdentifier = hash
52authorityKeyIdentifier = keyid,issuer