diff options
Diffstat (limited to 'src/lib/libssl/doc/openssl.cnf')
-rw-r--r-- | src/lib/libssl/doc/openssl.cnf | 51 |
1 files changed, 46 insertions, 5 deletions
diff --git a/src/lib/libssl/doc/openssl.cnf b/src/lib/libssl/doc/openssl.cnf index d70dd25622..eca51c3322 100644 --- a/src/lib/libssl/doc/openssl.cnf +++ b/src/lib/libssl/doc/openssl.cnf | |||
@@ -3,8 +3,13 @@ | |||
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 | ||
7 | # defined. | ||
8 | HOME = . | ||
6 | RANDFILE = $ENV::HOME/.rnd | 9 | RANDFILE = $ENV::HOME/.rnd |
7 | oid_file = $ENV::HOME/.oid | 10 | |
11 | # Extra OBJECT IDENTIFIER info: | ||
12 | #oid_file = $ENV::HOME/.oid | ||
8 | oid_section = new_oids | 13 | oid_section = new_oids |
9 | 14 | ||
10 | # To use this configuration file with the "-extfile" option of the | 15 | # To use this configuration file with the "-extfile" option of the |
@@ -43,6 +48,14 @@ RANDFILE = $dir/private/.rand # private random number file | |||
43 | 48 | ||
44 | x509_extensions = usr_cert # The extentions to add to the cert | 49 | x509_extensions = usr_cert # The extentions to add to the cert |
45 | 50 | ||
51 | # Comment out the following two lines for the "traditional" | ||
52 | # (and highly broken) format. | ||
53 | name_opt = ca_default # Subject Name options | ||
54 | cert_opt = ca_default # Certificate field options | ||
55 | |||
56 | # Extension copying option: use with caution. | ||
57 | # copy_extensions = copy | ||
58 | |||
46 | # Extensions to add to a CRL. Note: Netscape communicator chokes on V2 CRLs | 59 | # 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. | 60 | # so this is commented out by default to leave a V1 CRL. |
48 | # crl_extensions = crl_ext | 61 | # crl_extensions = crl_ext |
@@ -86,6 +99,22 @@ distinguished_name = req_distinguished_name | |||
86 | attributes = req_attributes | 99 | attributes = req_attributes |
87 | x509_extensions = v3_ca # The extentions to add to the self signed cert | 100 | x509_extensions = v3_ca # The extentions to add to the self signed cert |
88 | 101 | ||
102 | # Passwords for private keys if not present they will be prompted for | ||
103 | # input_password = secret | ||
104 | # output_password = secret | ||
105 | |||
106 | # This sets a mask for permitted string types. There are several options. | ||
107 | # default: PrintableString, T61String, BMPString. | ||
108 | # pkix : PrintableString, BMPString. | ||
109 | # utf8only: only UTF8Strings. | ||
110 | # nombstr : PrintableString, T61String (no BMPStrings or UTF8Strings). | ||
111 | # MASK:XXXX a literal mask value. | ||
112 | # WARNING: current versions of Netscape crash on BMPStrings or UTF8Strings | ||
113 | # so use this option with caution! | ||
114 | string_mask = nombstr | ||
115 | |||
116 | # req_extensions = v3_req # The extensions to add to a certificate request | ||
117 | |||
89 | [ req_distinguished_name ] | 118 | [ req_distinguished_name ] |
90 | countryName = Country Name (2 letter code) | 119 | countryName = Country Name (2 letter code) |
91 | countryName_default = AU | 120 | countryName_default = AU |
@@ -111,7 +140,7 @@ commonName = Common Name (eg, YOUR name) | |||
111 | commonName_max = 64 | 140 | commonName_max = 64 |
112 | 141 | ||
113 | emailAddress = Email Address | 142 | emailAddress = Email Address |
114 | emailAddress_max = 40 | 143 | emailAddress_max = 64 |
115 | 144 | ||
116 | # SET-ex3 = SET extension number 3 | 145 | # SET-ex3 = SET extension number 3 |
117 | 146 | ||
@@ -159,6 +188,9 @@ authorityKeyIdentifier=keyid,issuer:always | |||
159 | # This stuff is for subjectAltName and issuerAltname. | 188 | # This stuff is for subjectAltName and issuerAltname. |
160 | # Import the email address. | 189 | # Import the email address. |
161 | # subjectAltName=email:copy | 190 | # subjectAltName=email:copy |
191 | # An alternative to produce certificates that aren't | ||
192 | # deprecated according to PKIX. | ||
193 | # subjectAltName=email:move | ||
162 | 194 | ||
163 | # Copy subject details | 195 | # Copy subject details |
164 | # issuerAltName=issuer:copy | 196 | # issuerAltName=issuer:copy |
@@ -170,8 +202,16 @@ authorityKeyIdentifier=keyid,issuer:always | |||
170 | #nsCaPolicyUrl | 202 | #nsCaPolicyUrl |
171 | #nsSslServerName | 203 | #nsSslServerName |
172 | 204 | ||
205 | [ v3_req ] | ||
206 | |||
207 | # Extensions to add to a certificate request | ||
208 | |||
209 | basicConstraints = CA:FALSE | ||
210 | keyUsage = nonRepudiation, digitalSignature, keyEncipherment | ||
211 | |||
173 | [ v3_ca ] | 212 | [ v3_ca ] |
174 | 213 | ||
214 | |||
175 | # Extensions for a typical CA | 215 | # Extensions for a typical CA |
176 | 216 | ||
177 | 217 | ||
@@ -200,10 +240,11 @@ basicConstraints = CA:true | |||
200 | # Copy issuer details | 240 | # Copy issuer details |
201 | # issuerAltName=issuer:copy | 241 | # issuerAltName=issuer:copy |
202 | 242 | ||
203 | # RAW DER hex encoding of an extension: beware experts only! | 243 | # DER hex encoding of an extension: beware experts only! |
204 | # 1.2.3.5=RAW:02:03 | 244 | # obj=DER:02:03 |
245 | # Where 'obj' is a standard or added object | ||
205 | # You can even override a supported extension: | 246 | # You can even override a supported extension: |
206 | # basicConstraints= critical, RAW:30:03:01:01:FF | 247 | # basicConstraints= critical, DER:30:03:01:01:FF |
207 | 248 | ||
208 | [ crl_ext ] | 249 | [ crl_ext ] |
209 | 250 | ||