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