]> git.ipfire.org Git - thirdparty/openssl.git/blame - apps/openssl.cnf
Import of old SSLeay release: SSLeay 0.9.1b (unreleased)
[thirdparty/openssl.git] / apps / openssl.cnf
CommitLineData
d02b48c6
RE
1#
2# SSLeay example configuration file.
3# This is mostly being used for generation of certificate requests.
4#
5
6RANDFILE = $ENV::HOME/.rnd
dfeab068 7oid_file = $ENV::HOME/.oid
d02b48c6
RE
8
9####################################################################
10[ ca ]
11default_ca = CA_default # The default ca section
12
13####################################################################
14[ CA_default ]
15
16dir = ./demoCA # Where everything is kept
17certs = $dir/certs # Where the issued certs are kept
18crl_dir = $dir/crl # Where the issued crl are kept
19database = $dir/index.txt # database index file.
20new_certs_dir = $dir/newcerts # default place for new certs.
21
22certificate = $dir/cacert.pem # The CA certificate
23serial = $dir/serial # The current serial number
24crl = $dir/crl.pem # The current CRL
25private_key = $dir/private/cakey.pem# The private key
26RANDFILE = $dir/private/.rand # private random number file
27
28x509_extensions = x509v3_extensions # The extentions to add to the cert
29default_days = 365 # how long to certify for
30default_crl_days= 30 # how long before next CRL
31default_md = md5 # which md to use.
32preserve = no # keep passed DN ordering
33
34# A few difference way of specifying how similar the request should look
35# For type CA, the listed attributes must be the same, and the optional
36# and supplied fields are just that :-)
37policy = policy_match
38
39# For the CA policy
40[ policy_match ]
41countryName = match
42stateOrProvinceName = match
43organizationName = match
44organizationalUnitName = optional
45commonName = supplied
46emailAddress = optional
47
48# For the 'anything' policy
49# At this point in time, you must list all acceptable 'object'
50# types.
51[ policy_anything ]
52countryName = optional
53stateOrProvinceName = optional
54localityName = optional
55organizationName = optional
56organizationalUnitName = optional
57commonName = supplied
58emailAddress = optional
59
60####################################################################
61[ req ]
62default_bits = 1024
63default_keyfile = privkey.pem
64distinguished_name = req_distinguished_name
65attributes = req_attributes
66
67[ req_distinguished_name ]
68countryName = Country Name (2 letter code)
69countryName_default = AU
70countryName_min = 2
71countryName_max = 2
72
73stateOrProvinceName = State or Province Name (full name)
74stateOrProvinceName_default = Some-State
75
76localityName = Locality Name (eg, city)
77
780.organizationName = Organization Name (eg, company)
790.organizationName_default = Internet Widgits Pty Ltd
80
81# we can do this but it is not needed normally :-)
82#1.organizationName = Second Organization Name (eg, company)
83#1.organizationName_default = CryptSoft Pty Ltd
84
85organizationalUnitName = Organizational Unit Name (eg, section)
86#organizationalUnitName_default =
87
88commonName = Common Name (eg, YOUR name)
89commonName_max = 64
90
91emailAddress = Email Address
92emailAddress_max = 40
93
dfeab068
RE
94SET-ex3 = SET extension number 3
95
d02b48c6
RE
96[ req_attributes ]
97challengePassword = A challenge password
98challengePassword_min = 4
99challengePassword_max = 20
100
101unstructuredName = An optional company name
102
103[ x509v3_extensions ]
104
105nsCaRevocationUrl = http://www.cryptsoft.com/ca-crl.pem
106nsComment = "This is a comment"
107
108# under ASN.1, the 0 bit would be encoded as 80
109nsCertType = 0x40
110
111#nsBaseUrl
112#nsRevocationUrl
113#nsRenewalUrl
114#nsCaPolicyUrl
115#nsSslServerName
116#nsCertSequence
117#nsCertExt
118#nsDataType
119