Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: openssl/apps/openssl.cnf

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/apps/openssl.c ('k') | openssl/apps/openssl-vms.cnf » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # OpenSSL example configuration file. 2 # OpenSSL example configuration file.
3 # This is mostly being used for generation of certificate requests. 3 # This is mostly being used for generation of certificate requests.
4 # 4 #
5 5
6 # This definition stops the following lines choking if HOME isn't 6 # This definition stops the following lines choking if HOME isn't
7 # defined. 7 # defined.
8 HOME = . 8 HOME = .
9 RANDFILE = $ENV::HOME/.rnd 9 RANDFILE = $ENV::HOME/.rnd
10 10
11 # Extra OBJECT IDENTIFIER info: 11 # Extra OBJECT IDENTIFIER info:
12 #oid_file = $ENV::HOME/.oid 12 #oid_file = $ENV::HOME/.oid
13 oid_section = new_oids 13 oid_section = new_oids
14 14
15 # To use this configuration file with the "-extfile" option of the 15 # To use this configuration file with the "-extfile" option of the
16 # "openssl x509" utility, name here the section containing the 16 # "openssl x509" utility, name here the section containing the
17 # X.509v3 extensions to use: 17 # X.509v3 extensions to use:
18 # extensions = 18 # extensions =
19 # (Alternatively, use a configuration file that has only 19 # (Alternatively, use a configuration file that has only
20 # X.509v3 extensions in its main [= default] section.) 20 # X.509v3 extensions in its main [= default] section.)
21 21
22 [ new_oids ] 22 [ new_oids ]
23 23
24 # We can add new OIDs in here for use by 'ca' and 'req'. 24 # We can add new OIDs in here for use by 'ca', 'req' and 'ts'.
25 # Add a simple OID like this: 25 # Add a simple OID like this:
26 # testoid1=1.2.3.4 26 # testoid1=1.2.3.4
27 # Or use config file substitution like this: 27 # Or use config file substitution like this:
28 # testoid2=${testoid1}.5.6 28 # testoid2=${testoid1}.5.6
29 29
30 # Policies used by the TSA examples.
31 tsa_policy1 = 1.2.3.4.1
32 tsa_policy2 = 1.2.3.4.5.6
33 tsa_policy3 = 1.2.3.4.5.7
34
30 #################################################################### 35 ####################################################################
31 [ ca ] 36 [ ca ]
32 default_ca = CA_default # The default ca section 37 default_ca = CA_default # The default ca section
33 38
34 #################################################################### 39 ####################################################################
35 [ CA_default ] 40 [ CA_default ]
36 41
37 dir = ./demoCA # Where everything is kept 42 dir = ./demoCA # Where everything is kept
38 certs = $dir/certs # Where the issued certs are kept 43 certs = $dir/certs # Where the issued certs are kept
39 crl_dir = $dir/crl # Where the issued crl are kept 44 crl_dir = $dir/crl # Where the issued crl are kept
(...skipping 20 matching lines...) Expand all
60 # Extension copying option: use with caution. 65 # Extension copying option: use with caution.
61 # copy_extensions = copy 66 # copy_extensions = copy
62 67
63 # Extensions to add to a CRL. Note: Netscape communicator chokes on V2 CRLs 68 # Extensions to add to a CRL. Note: Netscape communicator chokes on V2 CRLs
64 # so this is commented out by default to leave a V1 CRL. 69 # so this is commented out by default to leave a V1 CRL.
65 # crlnumber must also be commented out to leave a V1 CRL. 70 # crlnumber must also be commented out to leave a V1 CRL.
66 # crl_extensions = crl_ext 71 # crl_extensions = crl_ext
67 72
68 default_days = 365 # how long to certify for 73 default_days = 365 # how long to certify for
69 default_crl_days= 30 # how long before next CRL 74 default_crl_days= 30 # how long before next CRL
70 default_md» = sha1» » » # which md to use. 75 default_md» = default» » # use public key default MD
71 preserve = no # keep passed DN ordering 76 preserve = no # keep passed DN ordering
72 77
73 # A few difference way of specifying how similar the request should look 78 # A few difference way of specifying how similar the request should look
74 # For type CA, the listed attributes must be the same, and the optional 79 # For type CA, the listed attributes must be the same, and the optional
75 # and supplied fields are just that :-) 80 # and supplied fields are just that :-)
76 policy = policy_match 81 policy = policy_match
77 82
78 # For the CA policy 83 # For the CA policy
79 [ policy_match ] 84 [ policy_match ]
80 countryName = match 85 countryName = match
(...skipping 22 matching lines...) Expand all
103 distinguished_name = req_distinguished_name 108 distinguished_name = req_distinguished_name
104 attributes = req_attributes 109 attributes = req_attributes
105 x509_extensions = v3_ca # The extentions to add to the self signed cert 110 x509_extensions = v3_ca # The extentions to add to the self signed cert
106 111
107 # Passwords for private keys if not present they will be prompted for 112 # Passwords for private keys if not present they will be prompted for
108 # input_password = secret 113 # input_password = secret
109 # output_password = secret 114 # output_password = secret
110 115
111 # This sets a mask for permitted string types. There are several options. 116 # This sets a mask for permitted string types. There are several options.
112 # default: PrintableString, T61String, BMPString. 117 # default: PrintableString, T61String, BMPString.
113 # pkix» : PrintableString, BMPString. 118 # pkix» : PrintableString, BMPString (PKIX recommendation before 2004)
114 # utf8only: only UTF8Strings. 119 # utf8only: only UTF8Strings (PKIX recommendation after 2004).
115 # nombstr : PrintableString, T61String (no BMPStrings or UTF8Strings). 120 # nombstr : PrintableString, T61String (no BMPStrings or UTF8Strings).
116 # MASK:XXXX a literal mask value. 121 # MASK:XXXX a literal mask value.
117 # WARNING: current versions of Netscape crash on BMPStrings or UTF8Strings 122 # WARNING: ancient versions of Netscape crash on BMPStrings or UTF8Strings.
118 # so use this option with caution! 123 string_mask = utf8only
119 string_mask = nombstr
120 124
121 # req_extensions = v3_req # The extensions to add to a certificate request 125 # req_extensions = v3_req # The extensions to add to a certificate request
122 126
123 [ req_distinguished_name ] 127 [ req_distinguished_name ]
124 countryName = Country Name (2 letter code) 128 countryName = Country Name (2 letter code)
125 countryName_default = AU 129 countryName_default = AU
126 countryName_min = 2 130 countryName_min = 2
127 countryName_max = 2 131 countryName_max = 2
128 132
129 stateOrProvinceName = State or Province Name (full name) 133 stateOrProvinceName = State or Province Name (full name)
130 stateOrProvinceName_default = Some-State 134 stateOrProvinceName_default = Some-State
131 135
132 localityName = Locality Name (eg, city) 136 localityName = Locality Name (eg, city)
133 137
134 0.organizationName = Organization Name (eg, company) 138 0.organizationName = Organization Name (eg, company)
135 0.organizationName_default = Internet Widgits Pty Ltd 139 0.organizationName_default = Internet Widgits Pty Ltd
136 140
137 # we can do this but it is not needed normally :-) 141 # we can do this but it is not needed normally :-)
138 #1.organizationName = Second Organization Name (eg, company) 142 #1.organizationName = Second Organization Name (eg, company)
139 #1.organizationName_default = World Wide Web Pty Ltd 143 #1.organizationName_default = World Wide Web Pty Ltd
140 144
141 organizationalUnitName = Organizational Unit Name (eg, section) 145 organizationalUnitName = Organizational Unit Name (eg, section)
142 #organizationalUnitName_default = 146 #organizationalUnitName_default =
143 147
144 commonName» » » = Common Name (eg, YOUR name) 148 commonName» » » = Common Name (e.g. server FQDN or YOUR name)
145 commonName_max = 64 149 commonName_max = 64
146 150
147 emailAddress = Email Address 151 emailAddress = Email Address
148 emailAddress_max = 64 152 emailAddress_max = 64
149 153
150 # SET-ex3 = SET extension number 3 154 # SET-ex3 = SET extension number 3
151 155
152 [ req_attributes ] 156 [ req_attributes ]
153 challengePassword = A challenge password 157 challengePassword = A challenge password
154 challengePassword_min = 4 158 challengePassword_min = 4
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 # Copy subject details 204 # Copy subject details
201 # issuerAltName=issuer:copy 205 # issuerAltName=issuer:copy
202 206
203 #nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem 207 #nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
204 #nsBaseUrl 208 #nsBaseUrl
205 #nsRevocationUrl 209 #nsRevocationUrl
206 #nsRenewalUrl 210 #nsRenewalUrl
207 #nsCaPolicyUrl 211 #nsCaPolicyUrl
208 #nsSslServerName 212 #nsSslServerName
209 213
214 # This is required for TSA certificates.
215 # extendedKeyUsage = critical,timeStamping
216
210 [ v3_req ] 217 [ v3_req ]
211 218
212 # Extensions to add to a certificate request 219 # Extensions to add to a certificate request
213 220
214 basicConstraints = CA:FALSE 221 basicConstraints = CA:FALSE
215 keyUsage = nonRepudiation, digitalSignature, keyEncipherment 222 keyUsage = nonRepudiation, digitalSignature, keyEncipherment
216 223
217 [ v3_ca ] 224 [ v3_ca ]
218 225
219 226
220 # Extensions for a typical CA 227 # Extensions for a typical CA
221 228
222 229
223 # PKIX recommendation. 230 # PKIX recommendation.
224 231
225 subjectKeyIdentifier=hash 232 subjectKeyIdentifier=hash
226 233
227 authorityKeyIdentifier=keyid:always,issuer:always 234 authorityKeyIdentifier=keyid:always,issuer
228 235
229 # This is what PKIX recommends but some broken software chokes on critical 236 # This is what PKIX recommends but some broken software chokes on critical
230 # extensions. 237 # extensions.
231 #basicConstraints = critical,CA:true 238 #basicConstraints = critical,CA:true
232 # So we do this instead. 239 # So we do this instead.
233 basicConstraints = CA:true 240 basicConstraints = CA:true
234 241
235 # Key usage: this is typical for a CA certificate. However since it will 242 # Key usage: this is typical for a CA certificate. However since it will
236 # prevent it being used as an test self-signed certificate it is best 243 # prevent it being used as an test self-signed certificate it is best
237 # left out by default. 244 # left out by default.
(...skipping 12 matching lines...) Expand all
250 # Where 'obj' is a standard or added object 257 # Where 'obj' is a standard or added object
251 # You can even override a supported extension: 258 # You can even override a supported extension:
252 # basicConstraints= critical, DER:30:03:01:01:FF 259 # basicConstraints= critical, DER:30:03:01:01:FF
253 260
254 [ crl_ext ] 261 [ crl_ext ]
255 262
256 # CRL extensions. 263 # CRL extensions.
257 # Only issuerAltName and authorityKeyIdentifier make any sense in a CRL. 264 # Only issuerAltName and authorityKeyIdentifier make any sense in a CRL.
258 265
259 # issuerAltName=issuer:copy 266 # issuerAltName=issuer:copy
260 authorityKeyIdentifier=keyid:always,issuer:always 267 authorityKeyIdentifier=keyid:always
261 268
262 [ proxy_cert_ext ] 269 [ proxy_cert_ext ]
263 # These extensions should be added when creating a proxy certificate 270 # These extensions should be added when creating a proxy certificate
264 271
265 # This goes against PKIX guidelines but some CAs do it and some software 272 # This goes against PKIX guidelines but some CAs do it and some software
266 # requires this to avoid interpreting an end user certificate as a CA. 273 # requires this to avoid interpreting an end user certificate as a CA.
267 274
268 basicConstraints=CA:FALSE 275 basicConstraints=CA:FALSE
269 276
270 # Here are some examples of the usage of nsCertType. If it is omitted 277 # Here are some examples of the usage of nsCertType. If it is omitted
(...skipping 12 matching lines...) Expand all
283 # nsCertType = client, email, objsign 290 # nsCertType = client, email, objsign
284 291
285 # This is typical in keyUsage for a client certificate. 292 # This is typical in keyUsage for a client certificate.
286 # keyUsage = nonRepudiation, digitalSignature, keyEncipherment 293 # keyUsage = nonRepudiation, digitalSignature, keyEncipherment
287 294
288 # This will be displayed in Netscape's comment listbox. 295 # This will be displayed in Netscape's comment listbox.
289 nsComment = "OpenSSL Generated Certificate" 296 nsComment = "OpenSSL Generated Certificate"
290 297
291 # PKIX recommendations harmless if included in all certificates. 298 # PKIX recommendations harmless if included in all certificates.
292 subjectKeyIdentifier=hash 299 subjectKeyIdentifier=hash
293 authorityKeyIdentifier=keyid,issuer:always 300 authorityKeyIdentifier=keyid,issuer
294 301
295 # This stuff is for subjectAltName and issuerAltname. 302 # This stuff is for subjectAltName and issuerAltname.
296 # Import the email address. 303 # Import the email address.
297 # subjectAltName=email:copy 304 # subjectAltName=email:copy
298 # An alternative to produce certificates that aren't 305 # An alternative to produce certificates that aren't
299 # deprecated according to PKIX. 306 # deprecated according to PKIX.
300 # subjectAltName=email:move 307 # subjectAltName=email:move
301 308
302 # Copy subject details 309 # Copy subject details
303 # issuerAltName=issuer:copy 310 # issuerAltName=issuer:copy
304 311
305 #nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem 312 #nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
306 #nsBaseUrl 313 #nsBaseUrl
307 #nsRevocationUrl 314 #nsRevocationUrl
308 #nsRenewalUrl 315 #nsRenewalUrl
309 #nsCaPolicyUrl 316 #nsCaPolicyUrl
310 #nsSslServerName 317 #nsSslServerName
311 318
312 # This really needs to be in place for it to be a proxy certificate. 319 # This really needs to be in place for it to be a proxy certificate.
313 proxyCertInfo=critical,language:id-ppl-anyLanguage,pathlen:3,policy:foo 320 proxyCertInfo=critical,language:id-ppl-anyLanguage,pathlen:3,policy:foo
321
322 ####################################################################
323 [ tsa ]
324
325 default_tsa = tsa_config1 # the default TSA section
326
327 [ tsa_config1 ]
328
329 # These are used by the TSA reply generation only.
330 dir = ./demoCA # TSA root directory
331 serial = $dir/tsaserial # The current serial number (mandatory)
332 crypto_device = builtin # OpenSSL engine to use for signing
333 signer_cert = $dir/tsacert.pem # The TSA signing certificate
334 # (optional)
335 certs = $dir/cacert.pem # Certificate chain to include in reply
336 # (optional)
337 signer_key = $dir/private/tsakey.pem # The TSA private key (optional)
338
339 default_policy = tsa_policy1 # Policy if request did not specify it
340 # (optional)
341 other_policies = tsa_policy2, tsa_policy3 # acceptable policies (optional)
342 digests = md5, sha1 # Acceptable message digests (mandatory)
343 accuracy = secs:1, millisecs:500, microsecs:100 # (optional)
344 clock_precision_digits = 0 # number of digits after dot. (optional)
345 ordering = yes # Is ordering defined for timestamps?
346 # (optional, default: no)
347 tsa_name = yes # Must the TSA name be included in the reply?
348 # (optional, default: no)
349 ess_cert_id_chain = no # Must the ESS cert id chain be included?
350 # (optional, default: no)
OLDNEW
« no previous file with comments | « openssl/apps/openssl.c ('k') | openssl/apps/openssl-vms.cnf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698