Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1 | ##================================================================
|
| 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 ]
|
| 12 | default_ca = my_ca
|
| 13 |
|
| 14 | [ my_ca ]
|
| 15 | certificate = test-ca.crt
|
| 16 | private_key = test-ca.key
|
| 17 | database = index
|
| 18 | serial = serial
|
| 19 |
|
| 20 | new_certs_dir = newcerts
|
| 21 | default_crl_days = 60
|
| 22 | default_days = 730
|
| 23 | default_md = sha1
|
| 24 | policy = my_policy
|
| 25 | x509_extensions = v3_usr
|
| 26 |
|
| 27 | [ my_policy ]
|
Paul Bakker | 222aa4b | 2009-01-14 22:44:12 +0000 | [diff] [blame] | 28 | countryName = match
|
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 29 | organizationName = match
|
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 30 | commonName = supplied
|
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 31 |
|
| 32 | [ req ]
|
| 33 | distinguished_name = my_req_dn
|
| 34 | x509_extensions = v3_ca
|
| 35 |
|
| 36 | [ my_req_dn ]
|
| 37 | countryName = Country Name..............
|
Paul Bakker | 222aa4b | 2009-01-14 22:44:12 +0000 | [diff] [blame] | 38 | countryName_default = NL
|
| 39 | organizationName = Organization Name.........
|
| 40 | organizationName_default = PolarSSL
|
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 41 | commonName = Common Name (required)....
|
| 42 | commonName_max = 64
|
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 43 |
|
| 44 | [ v3_ca ]
|
| 45 | basicConstraints = CA:TRUE
|
| 46 | subjectKeyIdentifier = hash
|
| 47 | authorityKeyIdentifier = keyid:always,issuer:always
|
| 48 |
|
| 49 | [ v3_usr ]
|
| 50 | basicConstraints = CA:FALSE
|
| 51 | subjectKeyIdentifier = hash
|
| 52 | authorityKeyIdentifier = keyid,issuer
|