2 # OpenSSL example configuration file.
3 # This is mostly being used for generation of certificate requests.
6 RANDFILE = $ENV::HOME/.rnd
7 oid_file = $ENV::HOME/.oid
10 # To use this configuration file with the "-extfile" option of the
11 # "openssl x509" utility, name here the section containing the
12 # X.509v3 extensions to use:
14 # (Alternatively, use a configuration file that has only
15 # X.509v3 extensions in its main [= default] section.)
19 # We can add new OIDs in here for use by 'ca' and 'req'.
20 # Add a simple OID like this:
22 # Or use config file substitution like this:
23 # testoid2=${testoid1}.5.6
25 ####################################################################
27 default_ca = CA_default # The default ca section
29 ####################################################################
32 dir = sys\$disk:[.demoCA # Where everything is kept
33 certs = $dir.certs] # Where the issued certs are kept
34 crl_dir = $dir.crl] # Where the issued crl are kept
35 database = $dir]index.txt # database index file.
36 new_certs_dir = $dir.newcerts] # default place for new certs.
38 certificate = $dir]cacert.pem # The CA certificate
39 serial = $dir]serial. # The current serial number
40 crl = $dir]crl.pem # The current CRL
41 private_key = $dir.private]cakey.pem# The private key
42 RANDFILE = $dir.private].rand # private random number file
44 x509_extensions = usr_cert # The extentions to add to the cert
46 # Extensions to add to a CRL. Note: Netscape communicator chokes on V2 CRLs
47 # so this is commented out by default to leave a V1 CRL.
48 # crl_extensions = crl_ext
50 default_days = 365 # how long to certify for
51 default_crl_days= 30 # how long before next CRL
52 default_md = md5 # which md to use.
53 preserve = no # keep passed DN ordering
55 # A few difference way of specifying how similar the request should look
56 # For type CA, the listed attributes must be the same, and the optional
57 # and supplied fields are just that :-)
63 stateOrProvinceName = match
64 organizationName = match
65 organizationalUnitName = optional
67 emailAddress = optional
69 # For the 'anything' policy
70 # At this point in time, you must list all acceptable 'object'
73 countryName = optional
74 stateOrProvinceName = optional
75 localityName = optional
76 organizationName = optional
77 organizationalUnitName = optional
79 emailAddress = optional
81 ####################################################################
84 default_keyfile = privkey.pem
85 distinguished_name = req_distinguished_name
86 attributes = req_attributes
87 x509_extensions = v3_ca # The extentions to add to the self signed cert
89 # This sets the permitted types in a DirectoryString. There are several
91 # default: PrintableString, T61String, BMPString.
92 # pkix : PrintableString, BMPString.
93 # utf8only: only UTF8Strings.
94 # nobmp : PrintableString, T61String (no BMPStrings).
95 # MASK:XXXX a literal mask value.
96 # WARNING: current versions of Netscape crash on BMPStrings or UTF8Strings
97 # so use this option with caution!
98 dirstring_type = nobmp
100 # req_extensions = v3_req # The extensions to add to a certificate request
102 [ req_distinguished_name ]
103 countryName = Country Name (2 letter code)
104 countryName_default = AU
108 stateOrProvinceName = State or Province Name (full name)
109 stateOrProvinceName_default = Some-State
111 localityName = Locality Name (eg, city)
113 0.organizationName = Organization Name (eg, company)
114 0.organizationName_default = Internet Widgits Pty Ltd
116 # we can do this but it is not needed normally :-)
117 #1.organizationName = Second Organization Name (eg, company)
118 #1.organizationName_default = World Wide Web Pty Ltd
120 organizationalUnitName = Organizational Unit Name (eg, section)
121 #organizationalUnitName_default =
123 commonName = Common Name (eg, YOUR name)
126 emailAddress = Email Address
127 emailAddress_max = 40
129 # SET-ex3 = SET extension number 3
132 challengePassword = A challenge password
133 challengePassword_min = 4
134 challengePassword_max = 20
136 unstructuredName = An optional company name
140 # These extensions are added when 'ca' signs a request.
142 # This goes against PKIX guidelines but some CAs do it and some software
143 # requires this to avoid interpreting an end user certificate as a CA.
145 basicConstraints=CA:FALSE
147 # Here are some examples of the usage of nsCertType. If it is omitted
148 # the certificate can be used for anything *except* object signing.
150 # This is OK for an SSL server.
151 # nsCertType = server
153 # For an object signing certificate this would be used.
154 # nsCertType = objsign
156 # For normal client use this is typical
157 # nsCertType = client, email
159 # and for everything including object signing:
160 # nsCertType = client, email, objsign
162 # This is typical in keyUsage for a client certificate.
163 # keyUsage = nonRepudiation, digitalSignature, keyEncipherment
165 # This will be displayed in Netscape's comment listbox.
166 nsComment = "OpenSSL Generated Certificate"
168 # PKIX recommendations harmless if included in all certificates.
169 subjectKeyIdentifier=hash
170 authorityKeyIdentifier=keyid,issuer:always
172 # This stuff is for subjectAltName and issuerAltname.
173 # Import the email address.
174 # subjectAltName=email:copy
176 # Copy subject details
177 # issuerAltName=issuer:copy
179 #nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
188 # Extensions to add to a certificate request
190 basicConstraints = CA:FALSE
191 keyUsage = nonRepudiation, digitalSignature, keyEncipherment
196 # Extensions for a typical CA
199 # PKIX recommendation.
201 subjectKeyIdentifier=hash
203 authorityKeyIdentifier=keyid:always,issuer:always
205 # This is what PKIX recommends but some broken software chokes on critical
207 #basicConstraints = critical,CA:true
208 # So we do this instead.
209 basicConstraints = CA:true
211 # Key usage: this is typical for a CA certificate. However since it will
212 # prevent it being used as an test self-signed certificate it is best
213 # left out by default.
214 # keyUsage = cRLSign, keyCertSign
216 # Some might want this also
217 # nsCertType = sslCA, emailCA
219 # Include email address in subject alt name: another PKIX recommendation
220 # subjectAltName=email:copy
221 # Copy issuer details
222 # issuerAltName=issuer:copy
224 # DER hex encoding of an extension: beware experts only!
226 # Where 'obj' is a standard or added object
227 # You can even override a supported extension:
228 # basicConstraints= critical, DER:30:03:01:01:FF
233 # Only issuerAltName and authorityKeyIdentifier make any sense in a CRL.
235 # issuerAltName=issuer:copy
236 authorityKeyIdentifier=keyid:always,issuer:always