diff options
author | jmc <> | 2016-08-19 08:46:38 +0000 |
---|---|---|
committer | jmc <> | 2016-08-19 08:46:38 +0000 |
commit | 30130a14f634515f0b4570796ab55bf107fd2ad9 (patch) | |
tree | 479f007e62b94903dfd2d891e5f97a1f26a82647 /src | |
parent | 1106933c5e1655871fb87ad0efed63240d2c4997 (diff) | |
download | openbsd-30130a14f634515f0b4570796ab55bf107fd2ad9.tar.gz openbsd-30130a14f634515f0b4570796ab55bf107fd2ad9.tar.bz2 openbsd-30130a14f634515f0b4570796ab55bf107fd2ad9.zip |
shorten the ocsp text; ok beck
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/openssl/openssl.1 | 270 |
1 files changed, 71 insertions, 199 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1 index fafee79a98..f583758cb8 100644 --- a/src/usr.bin/openssl/openssl.1 +++ b/src/usr.bin/openssl/openssl.1 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: openssl.1,v 1.54 2016/08/18 12:07:21 jmc Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.55 2016/08/19 08:46:38 jmc Exp $ |
2 | .\" ==================================================================== | 2 | .\" ==================================================================== |
3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | .\" | 4 | .\" |
@@ -112,7 +112,7 @@ | |||
112 | .\" | 112 | .\" |
113 | .\" OPENSSL | 113 | .\" OPENSSL |
114 | .\" | 114 | .\" |
115 | .Dd $Mdocdate: August 18 2016 $ | 115 | .Dd $Mdocdate: August 19 2016 $ |
116 | .Dt OPENSSL 1 | 116 | .Dt OPENSSL 1 |
117 | .Os | 117 | .Os |
118 | .Sh NAME | 118 | .Sh NAME |
@@ -2076,22 +2076,15 @@ With the | |||
2076 | option the situation is reversed: | 2076 | option the situation is reversed: |
2077 | a Netscape certificate sequence is created from a file of certificates. | 2077 | a Netscape certificate sequence is created from a file of certificates. |
2078 | .El | 2078 | .El |
2079 | .\" | ||
2080 | .\" OCSP | ||
2081 | .\" | ||
2082 | .Sh OCSP | 2079 | .Sh OCSP |
2083 | .nr nS 1 | 2080 | .nr nS 1 |
2084 | .Nm "openssl ocsp" | 2081 | .Nm "openssl ocsp" |
2085 | .Bk -words | ||
2086 | .Op Fl CA Ar file | 2082 | .Op Fl CA Ar file |
2087 | .Op Fl CAfile Ar file | 2083 | .Op Fl CAfile Ar file |
2088 | .Op Fl CApath Ar directory | 2084 | .Op Fl CApath Ar directory |
2089 | .Op Fl cert Ar file | 2085 | .Op Fl cert Ar file |
2090 | .Op Fl dgst Ar alg | 2086 | .Op Fl dgst Ar alg |
2091 | .Oo | 2087 | .Op Fl host Ar hostname : Ns Ar port |
2092 | .Fl host | ||
2093 | .Ar hostname : Ns Ar port | ||
2094 | .Oc | ||
2095 | .Op Fl index Ar indexfile | 2088 | .Op Fl index Ar indexfile |
2096 | .Op Fl issuer Ar file | 2089 | .Op Fl issuer Ar file |
2097 | .Op Fl ndays Ar days | 2090 | .Op Fl ndays Ar days |
@@ -2131,15 +2124,11 @@ a Netscape certificate sequence is created from a file of certificates. | |||
2131 | .Op Fl VAfile Ar file | 2124 | .Op Fl VAfile Ar file |
2132 | .Op Fl validity_period Ar nsec | 2125 | .Op Fl validity_period Ar nsec |
2133 | .Op Fl verify_other Ar file | 2126 | .Op Fl verify_other Ar file |
2134 | .Ek | ||
2135 | .nr nS 0 | 2127 | .nr nS 0 |
2136 | .Pp | 2128 | .Pp |
2137 | The Online Certificate Status Protocol | 2129 | The Online Certificate Status Protocol (OCSP) |
2138 | .Pq OCSP | 2130 | enables applications to determine the (revocation) state |
2139 | enables applications to determine the | 2131 | of an identified certificate (RFC 2560). |
2140 | .Pq revocation | ||
2141 | state of an identified certificate | ||
2142 | .Pq RFC 2560 . | ||
2143 | .Pp | 2132 | .Pp |
2144 | The | 2133 | The |
2145 | .Nm ocsp | 2134 | .Nm ocsp |
@@ -2151,11 +2140,8 @@ and behave like a mini OCSP server itself. | |||
2151 | The options are as follows: | 2140 | The options are as follows: |
2152 | .Bl -tag -width Ds | 2141 | .Bl -tag -width Ds |
2153 | .It Fl CAfile Ar file , Fl CApath Ar directory | 2142 | .It Fl CAfile Ar file , Fl CApath Ar directory |
2154 | .Ar file | 2143 | A file or path containing trusted CA certificates, |
2155 | or | 2144 | used to verify the signature on the OCSP response. |
2156 | .Ar path | ||
2157 | containing trusted CA certificates. | ||
2158 | These are used to verify the signature on the OCSP response. | ||
2159 | .It Fl cert Ar file | 2145 | .It Fl cert Ar file |
2160 | Add the certificate | 2146 | Add the certificate |
2161 | .Ar file | 2147 | .Ar file |
@@ -2164,32 +2150,28 @@ The issuer certificate is taken from the previous | |||
2164 | .Fl issuer | 2150 | .Fl issuer |
2165 | option, or an error occurs if no issuer certificate is specified. | 2151 | option, or an error occurs if no issuer certificate is specified. |
2166 | .It Fl dgst Ar alg | 2152 | .It Fl dgst Ar alg |
2167 | Sets the digest algorithm to use for certificate identification | 2153 | Use the digest algorithm |
2168 | in the OCSP request. | 2154 | .Ar alg |
2155 | for certificate identification in the OCSP request. | ||
2169 | By default SHA-1 is used. | 2156 | By default SHA-1 is used. |
2170 | .It Xo | 2157 | .It Xo |
2171 | .Fl host Ar hostname : Ns Ar port , | 2158 | .Fl host Ar hostname : Ns Ar port , |
2172 | .Fl path Ar path | 2159 | .Fl path Ar path |
2173 | .Xc | 2160 | .Xc |
2174 | If the | 2161 | Send |
2175 | .Fl host | 2162 | the OCSP request to |
2176 | option is present, then the OCSP request is sent to the host | ||
2177 | .Ar hostname | 2163 | .Ar hostname |
2178 | on port | 2164 | on |
2179 | .Ar port . | 2165 | .Ar port . |
2180 | .Fl path | 2166 | .Fl path |
2181 | specifies the HTTP path name to use, or | 2167 | specifies the HTTP path name to use, or |
2182 | .Sq / | 2168 | .Pa / |
2183 | by default. | 2169 | by default. |
2184 | .It Fl issuer Ar file | 2170 | .It Fl issuer Ar file |
2185 | This specifies the current issuer certificate. | 2171 | The current issuer certificate, |
2186 | This option can be used multiple times. | 2172 | in PEM format. |
2187 | The certificate specified in | 2173 | Can be used multiple times |
2188 | .Ar file | 2174 | and must come before any |
2189 | must be in PEM format. | ||
2190 | This option | ||
2191 | .Em must | ||
2192 | come before any | ||
2193 | .Fl cert | 2175 | .Fl cert |
2194 | options. | 2176 | options. |
2195 | .It Fl no_cert_checks | 2177 | .It Fl no_cert_checks |
@@ -2202,14 +2184,14 @@ Don't verify the OCSP response signer's certificate at all. | |||
2202 | Since this option allows the OCSP response to be signed by any certificate, | 2184 | Since this option allows the OCSP response to be signed by any certificate, |
2203 | it should only be used for testing purposes. | 2185 | it should only be used for testing purposes. |
2204 | .It Fl no_certs | 2186 | .It Fl no_certs |
2205 | Don't include any certificates in signed request. | 2187 | Don't include any certificates in the signed request. |
2206 | .It Fl no_chain | 2188 | .It Fl no_chain |
2207 | Do not use certificates in the response as additional untrusted CA | 2189 | Do not use certificates in the response as additional untrusted CA |
2208 | certificates. | 2190 | certificates. |
2209 | .It Fl no_intern | 2191 | .It Fl no_intern |
2210 | Ignore certificates contained in the OCSP response | 2192 | Ignore certificates contained in the OCSP response |
2211 | when searching for the signer's certificate. | 2193 | when searching for the signer's certificate. |
2212 | With this option, the signer's certificate must be specified with either the | 2194 | The signer's certificate must be specified with either the |
2213 | .Fl verify_other | 2195 | .Fl verify_other |
2214 | or | 2196 | or |
2215 | .Fl VAfile | 2197 | .Fl VAfile |
@@ -2219,40 +2201,29 @@ Don't check the signature on the OCSP response. | |||
2219 | Since this option tolerates invalid signatures on OCSP responses, | 2201 | Since this option tolerates invalid signatures on OCSP responses, |
2220 | it will normally only be used for testing purposes. | 2202 | it will normally only be used for testing purposes. |
2221 | .It Fl nonce , no_nonce | 2203 | .It Fl nonce , no_nonce |
2222 | Add an OCSP | 2204 | Add an OCSP nonce extension to a request, |
2223 | .Em nonce | 2205 | or disable an OCSP nonce addition. |
2224 | extension to a request or disable an OCSP | ||
2225 | .Em nonce | ||
2226 | addition. | ||
2227 | Normally, if an OCSP request is input using the | 2206 | Normally, if an OCSP request is input using the |
2228 | .Fl respin | 2207 | .Fl respin |
2229 | option no | 2208 | option no nonce is added: |
2230 | .Em nonce | ||
2231 | is added: | ||
2232 | using the | 2209 | using the |
2233 | .Fl nonce | 2210 | .Fl nonce |
2234 | option will force addition of a | 2211 | option will force the addition of a nonce. |
2235 | .Em nonce . | ||
2236 | If an OCSP request is being created (using the | 2212 | If an OCSP request is being created (using the |
2237 | .Fl cert | 2213 | .Fl cert |
2238 | and | 2214 | and |
2239 | .Fl serial | 2215 | .Fl serial |
2240 | options) | 2216 | options) |
2241 | a | 2217 | a nonce is automatically added; specifying |
2242 | .Em nonce | ||
2243 | is automatically added; specifying | ||
2244 | .Fl no_nonce | 2218 | .Fl no_nonce |
2245 | overrides this. | 2219 | overrides this. |
2246 | .It Fl noverify | 2220 | .It Fl noverify |
2247 | Don't attempt to verify the OCSP response signature or the | 2221 | Don't attempt to verify the OCSP response signature or the nonce values. |
2248 | .Em nonce | 2222 | This is normally only be used for debugging |
2249 | values. | ||
2250 | This option will normally only be used for debugging | ||
2251 | since it disables all verification of the responder's certificate. | 2223 | since it disables all verification of the responder's certificate. |
2252 | .It Fl out Ar file | 2224 | .It Fl out Ar file |
2253 | Specify output | 2225 | Specify the output file to write to, |
2254 | .Ar file ; | 2226 | or standard output if none is specified. |
2255 | default is standard output. | ||
2256 | .It Fl req_text , resp_text , text | 2227 | .It Fl req_text , resp_text , text |
2257 | Print out the text form of the OCSP request, response, or both, respectively. | 2228 | Print out the text form of the OCSP request, response, or both, respectively. |
2258 | .It Fl reqin Ar file , Fl respin Ar file | 2229 | .It Fl reqin Ar file , Fl respin Ar file |
@@ -2276,9 +2247,8 @@ option except the certificate with serial number | |||
2276 | is added to the request. | 2247 | is added to the request. |
2277 | The serial number is interpreted as a decimal integer unless preceded by | 2248 | The serial number is interpreted as a decimal integer unless preceded by |
2278 | .Sq 0x . | 2249 | .Sq 0x . |
2279 | Negative integers can also be specified by preceding the value with a | 2250 | Negative integers can also be specified |
2280 | .Sq - | 2251 | by preceding the value with a minus sign. |
2281 | sign. | ||
2282 | .It Fl sign_other Ar file | 2252 | .It Fl sign_other Ar file |
2283 | Additional certificates to include in the signed request. | 2253 | Additional certificates to include in the signed request. |
2284 | .It Fl signer Ar file , Fl signkey Ar file | 2254 | .It Fl signer Ar file , Fl signkey Ar file |
@@ -2305,21 +2275,16 @@ Both HTTP and HTTPS | |||
2305 | .Pq SSL/TLS | 2275 | .Pq SSL/TLS |
2306 | URLs can be specified. | 2276 | URLs can be specified. |
2307 | .It Fl VAfile Ar file | 2277 | .It Fl VAfile Ar file |
2308 | .Ar file | 2278 | A file containing explicitly trusted responder certificates. |
2309 | containing explicitly trusted responder certificates. | ||
2310 | Equivalent to the | 2279 | Equivalent to the |
2311 | .Fl verify_other | 2280 | .Fl verify_other |
2312 | and | 2281 | and |
2313 | .Fl trust_other | 2282 | .Fl trust_other |
2314 | options. | 2283 | options. |
2315 | .It Fl validity_period Ar nsec , Fl status_age Ar age | 2284 | .It Fl validity_period Ar nsec , Fl status_age Ar age |
2316 | These options specify the range of times, in seconds, which will be tolerated | 2285 | The range of times, in seconds, which will be tolerated in an OCSP response. |
2317 | in an OCSP response. | 2286 | Each certificate status response includes a notBefore time |
2318 | Each certificate status response includes a | 2287 | and an optional notAfter time. |
2319 | .Em notBefore | ||
2320 | time and an optional | ||
2321 | .Em notAfter | ||
2322 | time. | ||
2323 | The current time should fall between these two values, | 2288 | The current time should fall between these two values, |
2324 | but the interval between the two times may be only a few seconds. | 2289 | but the interval between the two times may be only a few seconds. |
2325 | In practice the OCSP responder and clients' clocks may not be precisely | 2290 | In practice the OCSP responder and clients' clocks may not be precisely |
@@ -2327,61 +2292,49 @@ synchronised and so such a check may fail. | |||
2327 | To avoid this the | 2292 | To avoid this the |
2328 | .Fl validity_period | 2293 | .Fl validity_period |
2329 | option can be used to specify an acceptable error range in seconds, | 2294 | option can be used to specify an acceptable error range in seconds, |
2330 | the default value is 5 minutes. | 2295 | the default value being 5 minutes. |
2331 | .Pp | 2296 | .Pp |
2332 | If the | 2297 | If the notAfter time is omitted from a response, |
2333 | .Em notAfter | 2298 | it means that new status information is immediately available. |
2334 | time is omitted from a response, then this means that new status | 2299 | In this case the age of the notBefore field is checked |
2335 | information is immediately available. | 2300 | to see it is not older than |
2336 | In this case the age of the | ||
2337 | .Em notBefore | ||
2338 | field is checked to see it is not older than | ||
2339 | .Ar age | 2301 | .Ar age |
2340 | seconds old. | 2302 | seconds old. |
2341 | By default, this additional check is not performed. | 2303 | By default, this additional check is not performed. |
2342 | .It Fl verify_other Ar file | 2304 | .It Fl verify_other Ar file |
2343 | .Ar file | 2305 | A file containing additional certificates to search |
2344 | containing additional certificates to search when attempting to locate | 2306 | when attempting to locate the OCSP response signing certificate. |
2345 | the OCSP response signing certificate. | 2307 | Some responders omit the actual signer's certificate from the response, |
2346 | Some responders omit the actual signer's certificate from the response; | 2308 | so this can be used to supply the necessary certificate. |
2347 | this option can be used to supply the necessary certificate in such cases. | ||
2348 | .El | 2309 | .El |
2349 | .Sh OCSP SERVER OPTIONS | 2310 | .Pp |
2311 | The options for the OCSP server are as follows: | ||
2350 | .Bl -tag -width "XXXX" | 2312 | .Bl -tag -width "XXXX" |
2351 | .It Fl CA Ar file | 2313 | .It Fl CA Ar file |
2352 | CA certificate corresponding to the revocation information in | 2314 | CA certificate corresponding to the revocation information in |
2353 | .Ar indexfile . | 2315 | .Ar indexfile . |
2354 | .It Fl index Ar indexfile | 2316 | .It Fl index Ar indexfile |
2355 | .Ar indexfile | 2317 | .Ar indexfile |
2356 | is a text index file in | 2318 | is a text index file in ca format |
2357 | .Nm ca | 2319 | containing certificate revocation information. |
2358 | format containing certificate revocation information. | ||
2359 | .Pp | 2320 | .Pp |
2360 | If the | 2321 | If this option is specified, |
2361 | .Fl index | ||
2362 | option is specified, the | ||
2363 | .Nm ocsp | 2322 | .Nm ocsp |
2364 | utility is in | 2323 | is in responder mode, otherwise it is in client mode. |
2365 | .Em responder | 2324 | The requests the responder processes can be either specified on |
2366 | mode, otherwise it is in | ||
2367 | .Em client | ||
2368 | mode. | ||
2369 | The request(s) the responder processes can be either specified on | ||
2370 | the command line (using the | 2325 | the command line (using the |
2371 | .Fl issuer | 2326 | .Fl issuer |
2372 | and | 2327 | and |
2373 | .Fl serial | 2328 | .Fl serial |
2374 | options), supplied in a file (using the | 2329 | options), supplied in a file (using the |
2375 | .Fl respin | 2330 | .Fl respin |
2376 | option) or via external OCSP clients (if | 2331 | option), or via external OCSP clients (if |
2377 | .Ar port | 2332 | .Ar port |
2378 | or | 2333 | or |
2379 | .Ar url | 2334 | .Ar url |
2380 | is specified). | 2335 | is specified). |
2381 | .Pp | 2336 | .Pp |
2382 | If the | 2337 | If this option is present, then the |
2383 | .Fl index | ||
2384 | option is present, then the | ||
2385 | .Fl CA | 2338 | .Fl CA |
2386 | and | 2339 | and |
2387 | .Fl rsigner | 2340 | .Fl rsigner |
@@ -2391,24 +2344,23 @@ Number of | |||
2391 | .Ar minutes | 2344 | .Ar minutes |
2392 | or | 2345 | or |
2393 | .Ar days | 2346 | .Ar days |
2394 | when fresh revocation information is available: used in the | 2347 | when fresh revocation information is available: |
2395 | .Ar nextUpdate | 2348 | used in the nextUpdate field. |
2396 | field. | 2349 | If neither option is present, |
2397 | If neither option is present, the | 2350 | the nextUpdate field is omitted, |
2398 | .Em nextUpdate | 2351 | meaning fresh revocation information is immediately available. |
2399 | field is omitted, meaning fresh revocation information is immediately available. | ||
2400 | .It Fl nrequest Ar number | 2352 | .It Fl nrequest Ar number |
2401 | The OCSP server will exit after receiving | 2353 | Exit after receiving |
2402 | .Ar number | 2354 | .Ar number |
2403 | requests, default unlimited. | 2355 | requests (the default is unlimited). |
2404 | .It Fl port Ar portnum | 2356 | .It Fl port Ar portnum |
2405 | Port to listen for OCSP requests on. | 2357 | Port to listen for OCSP requests on. |
2406 | The port may also be specified using the | 2358 | May also be specified using the |
2407 | .Fl url | 2359 | .Fl url |
2408 | option. | 2360 | option. |
2409 | .It Fl resp_key_id | 2361 | .It Fl resp_key_id |
2410 | Identify the signer certificate using the key ID; | 2362 | Identify the signer certificate using the key ID; |
2411 | default is to use the subject name. | 2363 | the default is to use the subject name. |
2412 | .It Fl resp_no_certs | 2364 | .It Fl resp_no_certs |
2413 | Don't include any certificates in the OCSP response. | 2365 | Don't include any certificates in the OCSP response. |
2414 | .It Fl rkey Ar file | 2366 | .It Fl rkey Ar file |
@@ -2421,12 +2373,9 @@ Additional certificates to include in the OCSP response. | |||
2421 | .It Fl rsigner Ar file | 2373 | .It Fl rsigner Ar file |
2422 | The certificate to sign OCSP responses with. | 2374 | The certificate to sign OCSP responses with. |
2423 | .El | 2375 | .El |
2424 | .Sh OCSP RESPONSE VERIFICATION | ||
2425 | OCSP Response follows the rules specified in RFC 2560. | ||
2426 | .Pp | 2376 | .Pp |
2427 | Initially the OCSP responder certificate is located and the signature on | 2377 | Initially the OCSP responder certificate is located and the signature on |
2428 | the OCSP request checked using the responder certificate's public key. | 2378 | the OCSP request checked using the responder certificate's public key. |
2429 | .Pp | ||
2430 | Then a normal certificate verify is performed on the OCSP responder certificate | 2379 | Then a normal certificate verify is performed on the OCSP responder certificate |
2431 | building up a certificate chain in the process. | 2380 | building up a certificate chain in the process. |
2432 | The locations of the trusted certificates used to build the chain can be | 2381 | The locations of the trusted certificates used to build the chain can be |
@@ -2435,13 +2384,10 @@ specified by the | |||
2435 | and | 2384 | and |
2436 | .Fl CApath | 2385 | .Fl CApath |
2437 | options or they will be looked for in the standard | 2386 | options or they will be looked for in the standard |
2438 | .Nm OpenSSL | 2387 | .Nm openssl |
2439 | certificates | 2388 | certificates directory. |
2440 | directory. | ||
2441 | .Pp | ||
2442 | If the initial verify fails, the OCSP verify process halts with an | ||
2443 | error. | ||
2444 | .Pp | 2389 | .Pp |
2390 | If the initial verify fails, the OCSP verify process halts with an error. | ||
2445 | Otherwise the issuing CA certificate in the request is compared to the OCSP | 2391 | Otherwise the issuing CA certificate in the request is compared to the OCSP |
2446 | responder certificate: if there is a match then the OCSP verify succeeds. | 2392 | responder certificate: if there is a match then the OCSP verify succeeds. |
2447 | .Pp | 2393 | .Pp |
@@ -2455,16 +2401,15 @@ is trusted for OCSP signing. | |||
2455 | If it is, the OCSP verify succeeds. | 2401 | If it is, the OCSP verify succeeds. |
2456 | .Pp | 2402 | .Pp |
2457 | If none of these checks is successful, the OCSP verify fails. | 2403 | If none of these checks is successful, the OCSP verify fails. |
2458 | .Pp | ||
2459 | What this effectively means is that if the OCSP responder certificate is | 2404 | What this effectively means is that if the OCSP responder certificate is |
2460 | authorised directly by the CA it is issuing revocation information about | 2405 | authorised directly by the CA it is issuing revocation information about |
2461 | .Pq and it is correctly configured , | 2406 | (and it is correctly configured), |
2462 | then verification will succeed. | 2407 | then verification will succeed. |
2463 | .Pp | 2408 | .Pp |
2464 | If the OCSP responder is a | 2409 | If the OCSP responder is a global responder, |
2465 | .Em global responder | 2410 | which can give details about multiple CAs |
2466 | which can give details about multiple CAs and has its own separate | 2411 | and has its own separate certificate chain, |
2467 | certificate chain, then its root CA can be trusted for OCSP signing. | 2412 | then its root CA can be trusted for OCSP signing. |
2468 | For example: | 2413 | For example: |
2469 | .Bd -literal -offset indent | 2414 | .Bd -literal -offset indent |
2470 | $ openssl x509 -in ocspCA.pem -addtrust OCSPSigning \e | 2415 | $ openssl x509 -in ocspCA.pem -addtrust OCSPSigning \e |
@@ -2475,79 +2420,6 @@ Alternatively, the responder certificate itself can be explicitly trusted | |||
2475 | with the | 2420 | with the |
2476 | .Fl VAfile | 2421 | .Fl VAfile |
2477 | option. | 2422 | option. |
2478 | .Sh OCSP NOTES | ||
2479 | As noted, most of the verify options are for testing or debugging purposes. | ||
2480 | Normally, only the | ||
2481 | .Fl CApath , CAfile | ||
2482 | and | ||
2483 | .Pq if the responder is a `global VA' | ||
2484 | .Fl VAfile | ||
2485 | options need to be used. | ||
2486 | .Pp | ||
2487 | The OCSP server is only useful for test and demonstration purposes: | ||
2488 | it is not really usable as a full OCSP responder. | ||
2489 | It contains only a very simple HTTP request handling and can only handle | ||
2490 | the POST form of OCSP queries. | ||
2491 | It also handles requests serially, meaning it cannot respond to | ||
2492 | new requests until it has processed the current one. | ||
2493 | The text index file format of revocation is also inefficient for large | ||
2494 | quantities of revocation data. | ||
2495 | .Pp | ||
2496 | It is possible to run the | ||
2497 | .Nm ocsp | ||
2498 | application in | ||
2499 | .Em responder | ||
2500 | mode via a CGI script using the | ||
2501 | .Fl respin | ||
2502 | and | ||
2503 | .Fl respout | ||
2504 | options. | ||
2505 | .Sh OCSP EXAMPLES | ||
2506 | Create an OCSP request and write it to a file: | ||
2507 | .Bd -literal -offset indent | ||
2508 | $ openssl ocsp -issuer issuer.pem -cert c1.pem -cert c2.pem \e | ||
2509 | -reqout req.der | ||
2510 | .Ed | ||
2511 | .Pp | ||
2512 | Send a query to an OCSP responder with URL | ||
2513 | .Pa http://ocsp.myhost.com/ , | ||
2514 | save the response to a file and print it out in text form: | ||
2515 | .Bd -literal -offset indent | ||
2516 | $ openssl ocsp -issuer issuer.pem -cert c1.pem -cert c2.pem \e | ||
2517 | -url http://ocsp.myhost.com/ -resp_text -respout resp.der | ||
2518 | .Ed | ||
2519 | .Pp | ||
2520 | Read in an OCSP response and print out in text form: | ||
2521 | .Pp | ||
2522 | .Dl $ openssl ocsp -respin resp.der -text | ||
2523 | .Pp | ||
2524 | OCSP server on port 8888 using a standard | ||
2525 | .Nm ca | ||
2526 | configuration, and a separate responder certificate. | ||
2527 | All requests and responses are printed to a file: | ||
2528 | .Bd -literal -offset indent | ||
2529 | $ openssl ocsp -index demoCA/index.txt -port 8888 -rsigner \e | ||
2530 | rcert.pem -CA demoCA/cacert.pem -text -out log.txt | ||
2531 | .Ed | ||
2532 | .Pp | ||
2533 | As above, but exit after processing one request: | ||
2534 | .Bd -literal -offset indent | ||
2535 | $ openssl ocsp -index demoCA/index.txt -port 8888 -rsigner \e | ||
2536 | rcert.pem -CA demoCA/cacert.pem -nrequest 1 | ||
2537 | .Ed | ||
2538 | .Pp | ||
2539 | Query status information using internally generated request: | ||
2540 | .Bd -literal -offset indent | ||
2541 | $ openssl ocsp -index demoCA/index.txt -rsigner rcert.pem -CA \e | ||
2542 | demoCA/cacert.pem -issuer demoCA/cacert.pem -serial 1 | ||
2543 | .Ed | ||
2544 | .Pp | ||
2545 | Query status information using request read from a file and write | ||
2546 | the response to a second file: | ||
2547 | .Bd -literal -offset indent | ||
2548 | $ openssl ocsp -index demoCA/index.txt -rsigner rcert.pem -CA \e | ||
2549 | demoCA/cacert.pem -reqin req.der -respout resp.der | ||
2550 | .Ed | ||
2551 | .\" | 2423 | .\" |
2552 | .\" PASSWD | 2424 | .\" PASSWD |
2553 | .\" | 2425 | .\" |