{
    "content": [
        {
            "type": "text",
            "text": "# OPENSSL-OCSP (man)\n\n## NAME\n\nopenssl-ocsp - Online Certificate Status Protocol command\n\n## DESCRIPTION\n\nThe Online Certificate Status Protocol (OCSP) enables applications to determine the\n(revocation) state of an identified certificate (RFC 2560).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (2 subsections)\n- **DESCRIPTION**\n- **OPTIONS** (54 subsections)\n- **OCSP RESPONSE VERIFICATION**\n- **NOTES** (1 subsections)\n- **EXAMPLES**\n- **HISTORY**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "OPENSSL-OCSP",
        "section": "",
        "mode": "man",
        "summary": "openssl-ocsp - Online Certificate Status Protocol command",
        "synopsis": "",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Print out a usage message."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "specify output filename, default is standard output."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This specifies the current issuer certificate. This option can be used multiple times. This option MUST come before any -cert options."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Add the certificate filename to the request. The issuer certificate is taken from the previous -issuer option, or an error occurs if no issuer certificate is specified."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Don't include any certificates in signed request."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Same as the -cert option except the certificate with serial number num is added to the request. The serial number is interpreted as a decimal integer unless preceded by \"0x\". Negative integers can also be specified by preceding the value by a \"-\" sign."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Sign the OCSP request using the certificate specified in the -signer option and the private key specified by the -signkey option. If the -signkey option is not present then the private key is read from the same file as the certificate. If neither option is specified then the OCSP request is not signed."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Additional certificates to include in the signed request. The input can be in PEM, DER, or PKCS#12 format."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Add an OCSP nonce extension to a request or disable OCSP nonce addition. Normally if an OCSP request is input using the -reqin option no nonce is added: using the -nonce option will force addition of a nonce. If an OCSP request is being created (using -cert and -serial options) a nonce is automatically added specifying -nononce overrides this."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Print out the text form of the OCSP request, response or both respectively."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Write out the DER encoded certificate request or response to file."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Read OCSP request or response file from file. These option are ignored if OCSP request or response creation is implied by other options (for example with -serial, -cert and -host options)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specify the responder URL. Both HTTP and HTTPS (SSL/TLS) URLs can be specified. The optional userinfo and fragment components are ignored. Any given query component is handled as part of the path component."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "If the -host option is present then the OCSP request is sent to the host hostname on port port. The -path option specifies the HTTP pathname to use or \"/\" by default. This is equivalent to specifying -url with scheme http:// and the given hostname, port, and pathname."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The HTTP(S) proxy server to use for reaching the OCSP server unless -noproxy applies, see below. The proxy port defaults to 80 or 443 if the scheme is \"https\"; apart from that the optional \"http://\" or \"https://\" prefix is ignored, as well as any userinfo and path components. Defaults to the environment variable \"httpproxy\" if set, else \"HTTPPROXY\" in case no TLS is used, otherwise \"httpsproxy\" if set, else \"HTTPSPROXY\"."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "List of IP addresses and/or DNS names of servers not to use an HTTP(S) proxy for, separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \"...\"). Default is from the environment variable \"noproxy\" if set, else \"NOPROXY\"."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Adds the header name with the specified value to the OCSP request that is sent to the responder. This may be repeated."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Connection timeout to the OCSP responder in seconds. On POSIX systems, when running as an OCSP responder, this option also limits the time that the responder is willing to wait for the client request. This time is measured from the time the responder accepts the connection until the complete request is received."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "File or URI containing additional certificates to search when attempting to locate the OCSP response signing certificate. Some responders omit the actual signer's certificate from the response: this option can be used to supply the necessary certificate in such cases. The input can be in PEM, DER, or PKCS#12 format."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The certificates specified by the -verifyother option should be explicitly trusted and no additional checks will be performed on them. This is useful when the complete responder certificate chain is not available or trusting a root CA is not appropriate."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "File or URI containing explicitly trusted responder certificates. Equivalent to the -verifyother and -trustother options. The input can be in PEM, DER, or PKCS#12 format."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Don't attempt to verify the OCSP response signature or the nonce values. This option will normally only be used for debugging since it disables all verification of the responders certificate."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Ignore certificates contained in the OCSP response when searching for the signers certificate. With this option the signers certificate must be specified with either the -verifyother or -VAfile options."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Don't check the signature on the OCSP response. Since this option tolerates invalid signatures on OCSP responses it will normally only be used for testing purposes."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Don't verify the OCSP response signers certificate at all. Since this option allows the OCSP response to be signed by any certificate it should only be used for testing purposes."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Do not use certificates in the response as additional untrusted CA certificates."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Do not explicitly trust the root CA if it is set to be trusted for OCSP signing."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Don't perform any additional checks on the OCSP response signers certificate. That is do not make any checks to see if the signers certificate is authorised to provide the necessary status information: as a result this option should only be used for testing purposes."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "These options specify the range of times, in seconds, which will be tolerated in an OCSP response. Each certificate status response includes a notBefore time and an optional notAfter time. The current time should fall between these two values, but the interval between the two times may be only a few seconds. In practice the OCSP responder and clients clocks may not be precisely synchronised and so such a check may fail. To avoid this the -validityperiod option can be used to specify an acceptable error range in seconds, the default value is 5 minutes. If the notAfter time is omitted from a response then this means that new status information is immediately available. In this case the age of the notBefore field is checked to see it is not older than age seconds old. By default this additional check is not performed."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This option sets the digest algorithm to use for certificate identification in the OCSP response. Any digest supported by the openssl-dgst(1) command can be used. The default is the same digest algorithm used in the request."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "This option sets digest algorithm to use for certificate identification in the OCSP request. Any digest supported by the OpenSSL dgst command can be used. The default is SHA-1. This option may be used multiple times to specify the digest used by subsequent certificate identifiers."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "See \"Trusted Certificate Options\" in openssl-verification-options(1) for details. -allowproxycerts, -attime, -nochecktime, -checksssig, -crlcheck, -crlcheckall,"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "-noaltchains, -partialchain, -policy, -policycheck, -policyprint, -purpose, -suiteB128, -suiteB128only, -suiteB192, -trustedfirst, -usedeltas, -authlevel, -verifydepth, -verifyemail, -verifyhostname, -verifyip, -verifyname, -x509strict -issuerchecks Set various options of certificate chain verification. See \"Verification Options\" in openssl-verification-options(1) for details."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "See \"Provider Options\" in openssl(1), provider(7), and property(7)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The indexfile parameter is the name of a text index file in ca format containing certificate revocation information. If the -index option is specified then this command switches to responder mode, otherwise it is in client mode. The request(s) the responder processes can be either specified on the command line (using -issuer and -serial options), supplied in a file (using the -reqin option) or via external OCSP clients (if -port or -url is specified). If the -index option is present then the -CA and -rsigner options must also be present."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "CA certificate corresponding to the revocation information in the index file given with -index. The input can be in PEM, DER, or PKCS#12 format."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The certificate to sign OCSP responses with."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The private key to sign OCSP responses with: if not present the file specified in the -rsigner option is used."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The private key password source. For more information about the format of arg see openssl-passphrase-options(1)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Additional certificates to include in the OCSP response. The input can be in PEM, DER, or PKCS#12 format."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Pass options to the signature algorithm when signing OCSP responses. Names and values of these options are algorithm-specific."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The digest to use when signing the response."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Corrupt the response signature before writing it; this can be useful for testing."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Don't include any certificates in the OCSP response."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Identify the signer certificate using the key ID, default is to use the subject name."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Port to listen for OCSP requests on. The port may also be specified using the url option. A 0 argument indicates that any available port shall be chosen automatically."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Ignore malformed requests or responses: When acting as an OCSP client, retry if a malformed response is received. When acting as an OCSP responder, continue running instead of terminating upon receiving a malformed request."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "The OCSP server will exit after receiving number requests, default unlimited."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Run the specified number of OCSP responder child processes, with the parent process respawning child processes as needed. Child processes will detect changes in the CA index file and automatically reload it. When running as a responder -timeout option is recommended to limit the time each child is willing to wait for the client's OCSP response. This option is available on POSIX systems (that support the fork() and other required unix system-calls)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Number of minutes or days when fresh revocation information is available: used in the nextUpdate field. If neither option is present then the nextUpdate field is omitted meaning fresh revocation information is immediately available."
            }
        ],
        "examples": [
            "Create an OCSP request and write it to a file:",
            "openssl ocsp -issuer issuer.pem -cert c1.pem -cert c2.pem -reqout req.der",
            "Send  a  query  to  an OCSP responder with URL http://ocsp.myhost.com/ save the response to a",
            "file, print it out in text form, and verify the response:",
            "openssl ocsp -issuer issuer.pem -cert c1.pem -cert c2.pem \\",
            "-url http://ocsp.myhost.com/ -resptext -respout resp.der",
            "Read in an OCSP response and print out text form:",
            "openssl ocsp -respin resp.der -text -noverify",
            "OCSP server on port 8888  using  a  standard  ca  configuration,  and  a  separate  responder",
            "certificate. All requests and responses are printed to a file.",
            "openssl ocsp -index demoCA/index.txt -port 8888 -rsigner rcert.pem -CA demoCA/cacert.pem",
            "-text -out log.txt",
            "As above but exit after processing one request:",
            "openssl ocsp -index demoCA/index.txt -port 8888 -rsigner rcert.pem -CA demoCA/cacert.pem",
            "-nrequest 1",
            "Query status information using an internally generated request:",
            "openssl ocsp -index demoCA/index.txt -rsigner rcert.pem -CA demoCA/cacert.pem",
            "-issuer demoCA/cacert.pem -serial 1",
            "Query  status  information using request read from a file, and write the response to a second",
            "file.",
            "openssl ocsp -index demoCA/index.txt -rsigner rcert.pem -CA demoCA/cacert.pem",
            "-reqin req.der -respout resp.der"
        ],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "OCSP Client",
                        "lines": 8
                    },
                    {
                        "name": "OCSP Server",
                        "lines": 12
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 3,
                "subsections": [
                    {
                        "name": "OCSP Client Options",
                        "lines": 1
                    },
                    {
                        "name": "-help",
                        "lines": 2
                    },
                    {
                        "name": "-out _",
                        "lines": 2
                    },
                    {
                        "name": "-issuer _",
                        "lines": 3
                    },
                    {
                        "name": "-cert _",
                        "lines": 3
                    },
                    {
                        "name": "-no_certs",
                        "lines": 2
                    },
                    {
                        "name": "-serial _",
                        "lines": 4
                    },
                    {
                        "name": "-signer _ -signkey _",
                        "lines": 5
                    },
                    {
                        "name": "-sign_other _",
                        "lines": 3
                    },
                    {
                        "name": "-nonce -no_nonce",
                        "lines": 5
                    },
                    {
                        "name": "-req_text -resp_text -text",
                        "lines": 2
                    },
                    {
                        "name": "-reqout _ -respout _",
                        "lines": 2
                    },
                    {
                        "name": "-reqin _ -respin _",
                        "lines": 4
                    },
                    {
                        "name": "-url _",
                        "lines": 4
                    },
                    {
                        "name": "-host _ -path _",
                        "lines": 5
                    },
                    {
                        "name": "-proxy _",
                        "lines": 6
                    },
                    {
                        "name": "-no_proxy _",
                        "lines": 5
                    },
                    {
                        "name": "-header _",
                        "lines": 3
                    },
                    {
                        "name": "-timeout _",
                        "lines": 5
                    },
                    {
                        "name": "-verify_other _",
                        "lines": 5
                    },
                    {
                        "name": "-trust_other",
                        "lines": 4
                    },
                    {
                        "name": "-VAfile _",
                        "lines": 3
                    },
                    {
                        "name": "-noverify",
                        "lines": 4
                    },
                    {
                        "name": "-no_intern",
                        "lines": 4
                    },
                    {
                        "name": "-no_signature_verify",
                        "lines": 3
                    },
                    {
                        "name": "-no_cert_verify",
                        "lines": 4
                    },
                    {
                        "name": "-no_chain",
                        "lines": 2
                    },
                    {
                        "name": "-no_explicit",
                        "lines": 2
                    },
                    {
                        "name": "-no_cert_checks",
                        "lines": 5
                    },
                    {
                        "name": "-validity_period _ -status_age _",
                        "lines": 13
                    },
                    {
                        "name": "-rcid _",
                        "lines": 4
                    },
                    {
                        "name": "-\u001b[4mdigest",
                        "lines": 5
                    },
                    {
                        "name": "-CAfile _ -no-CAfile -CApath _ -no-CApath -CAstore _ -no-CAstore",
                        "lines": 3
                    },
                    {
                        "name": "-explicit_policy -extended_crl -ignore_critical -inhibit_any -inhibit_map",
                        "lines": 6
                    },
                    {
                        "name": "-provider _",
                        "lines": 1
                    },
                    {
                        "name": "-provider-path _",
                        "lines": 1
                    },
                    {
                        "name": "-propquery _",
                        "lines": 2
                    },
                    {
                        "name": "OCSP Server Options",
                        "lines": 1
                    },
                    {
                        "name": "-index _",
                        "lines": 10
                    },
                    {
                        "name": "-CA _",
                        "lines": 3
                    },
                    {
                        "name": "-rsigner _",
                        "lines": 2
                    },
                    {
                        "name": "-rkey _",
                        "lines": 3
                    },
                    {
                        "name": "-passin _",
                        "lines": 3
                    },
                    {
                        "name": "-rother _",
                        "lines": 3
                    },
                    {
                        "name": "-rsigopt _",
                        "lines": 3
                    },
                    {
                        "name": "-rmd _",
                        "lines": 2
                    },
                    {
                        "name": "-badsig",
                        "lines": 2
                    },
                    {
                        "name": "-resp_no_certs",
                        "lines": 2
                    },
                    {
                        "name": "-resp_key_id",
                        "lines": 2
                    },
                    {
                        "name": "-port _",
                        "lines": 3
                    },
                    {
                        "name": "-ignore_err",
                        "lines": 4
                    },
                    {
                        "name": "-nrequest _",
                        "lines": 2
                    },
                    {
                        "name": "-multi _",
                        "lines": 7
                    },
                    {
                        "name": "-nmin _ -ndays _",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "OCSP RESPONSE VERIFICATION",
                "lines": 37,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 11,
                "subsections": [
                    {
                        "name": "-respout",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 36,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "openssl-ocsp - Online Certificate Status Protocol command\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "",
                "subsections": [
                    {
                        "name": "OCSP Client",
                        "content": "openssl ocsp [-help] [-out file] [-issuer file] [-cert file] [-nocerts] [-serial n] [-signer\nfile] [-signkey file] [-signother file] [-nonce] [-nononce] [-reqtext] [-resptext]\n[-text] [-reqout file] [-respout file] [-reqin file] [-respin file] [-url URL] [-host\nhost:port] [-path] [-proxy [http[s]://][userinfo@]host[:port][/path]] [-noproxy addresses]\n[-header] [-timeout seconds] [-VAfile file] [-validityperiod n] [-statusage n] [-noverify]\n[-verifyother file] [-trustother] [-nointern] [-nosignatureverify] [-nocertverify]\n[-nochain] [-nocertchecks] [-noexplicit] [-port num] [-ignoreerr]\n"
                    },
                    {
                        "name": "OCSP Server",
                        "content": "openssl ocsp [-index file] [-CA file] [-rsigner file] [-rkey file] [-passin arg] [-rother\nfile] [-rsigopt nm:v] [-rmd digest] [-badsig] [-respnocerts] [-nmin n] [-ndays n]\n[-respkeyid] [-nrequest n] [-multi process-count] [-rcid digest] [-digest] [-CAfile file]\n[-no-CAfile] [-CApath dir] [-no-CApath] [-CAstore uri] [-no-CAstore] [-allowproxycerts]\n[-attime timestamp] [-nochecktime] [-checksssig] [-crlcheck] [-crlcheckall]\n[-explicitpolicy] [-extendedcrl] [-ignorecritical] [-inhibitany] [-inhibitmap]\n[-partialchain] [-policy arg] [-policycheck] [-policyprint] [-purpose purpose]\n[-suiteB128] [-suiteB128only] [-suiteB192] [-trustedfirst] [-noaltchains]\n[-usedeltas] [-authlevel num] [-verifydepth num] [-verifyemail email] [-verifyhostname\nhostname] [-verifyip ip] [-verifyname name] [-x509strict] [-issuerchecks] [-provider\nname] [-provider-path path] [-propquery propq]\n"
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "The Online Certificate Status Protocol (OCSP) enables applications to determine the\n(revocation) state of an identified certificate (RFC 2560).\n\nThis command performs many common OCSP tasks. It can be used to print out requests and\nresponses, create requests and send queries to an OCSP responder and behave like a mini OCSP\nserver itself.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "This command operates as either a client or a server.  The options are described below,\ndivided into those two modes.\n",
                "subsections": [
                    {
                        "name": "OCSP Client Options",
                        "content": ""
                    },
                    {
                        "name": "-help",
                        "content": "Print out a usage message.\n"
                    },
                    {
                        "name": "-out _",
                        "content": "specify output filename, default is standard output.\n"
                    },
                    {
                        "name": "-issuer _",
                        "content": "This  specifies  the  current issuer certificate. This option can be used multiple times.\nThis option MUST come before any -cert options.\n"
                    },
                    {
                        "name": "-cert _",
                        "content": "Add the certificate filename to the request. The issuer certificate  is  taken  from  the\nprevious -issuer option, or an error occurs if no issuer certificate is specified.\n"
                    },
                    {
                        "name": "-no_certs",
                        "content": "Don't include any certificates in signed request.\n"
                    },
                    {
                        "name": "-serial _",
                        "content": "Same  as  the  -cert option except the certificate with serial number num is added to the\nrequest. The serial number is interpreted as a decimal integer unless preceded  by  \"0x\".\nNegative integers can also be specified by preceding the value by a \"-\" sign.\n"
                    },
                    {
                        "name": "-signer _ -signkey _",
                        "content": "Sign  the  OCSP  request  using  the  certificate specified in the -signer option and the\nprivate key specified by the -signkey option. If the -signkey option is not present  then\nthe  private  key  is  read  from  the same file as the certificate. If neither option is\nspecified then the OCSP request is not signed.\n"
                    },
                    {
                        "name": "-sign_other _",
                        "content": "Additional certificates to include in the signed request.  The input can be in PEM,  DER,\nor PKCS#12 format.\n"
                    },
                    {
                        "name": "-nonce -no_nonce",
                        "content": "Add  an OCSP nonce extension to a request or disable OCSP nonce addition.  Normally if an\nOCSP request is input using the -reqin option no nonce is added: using the -nonce  option\nwill  force  addition  of  a nonce.  If an OCSP request is being created (using -cert and\n-serial options) a nonce is automatically added specifying -nononce overrides this.\n"
                    },
                    {
                        "name": "-req_text -resp_text -text",
                        "content": "Print out the text form of the OCSP request, response or both respectively.\n"
                    },
                    {
                        "name": "-reqout _ -respout _",
                        "content": "Write out the DER encoded certificate request or response to file.\n"
                    },
                    {
                        "name": "-reqin _ -respin _",
                        "content": "Read OCSP request or response file from file. These option are ignored if OCSP request or\nresponse creation is implied by other options (for example with -serial, -cert and  -host\noptions).\n"
                    },
                    {
                        "name": "-url _",
                        "content": "Specify  the  responder  URL.  Both  HTTP and HTTPS (SSL/TLS) URLs can be specified.  The\noptional userinfo and fragment components are ignored.   Any  given  query  component  is\nhandled as part of the path component.\n"
                    },
                    {
                        "name": "-host _ -path _",
                        "content": "If the -host option is present then the OCSP request is sent to the host hostname on port\nport.  The  -path  option  specifies the HTTP pathname to use or \"/\" by default.  This is\nequivalent to specifying -url with scheme http://  and  the  given  hostname,  port,  and\npathname.\n"
                    },
                    {
                        "name": "-proxy _",
                        "content": "The  HTTP(S)  proxy  server to use for reaching the OCSP server unless -noproxy applies,\nsee below.  The proxy port defaults to 80 or 443 if the scheme  is  \"https\";  apart  from\nthat  the optional \"http://\" or \"https://\" prefix is ignored, as well as any userinfo and\npath components.   Defaults  to  the  environment  variable  \"httpproxy\"  if  set,  else\n\"HTTPPROXY\" in case no TLS is used, otherwise \"httpsproxy\" if set, else \"HTTPSPROXY\".\n"
                    },
                    {
                        "name": "-no_proxy _",
                        "content": "List  of  IP  addresses  and/or  DNS  names  of  servers not to use an HTTP(S) proxy for,\nseparated by commas and/or whitespace (where in the latter case the whole  argument  must\nbe  enclosed in \"...\").  Default is from the environment variable \"noproxy\" if set, else\n\"NOPROXY\".\n"
                    },
                    {
                        "name": "-header _",
                        "content": "Adds the header name with the specified value to the OCSP request that  is  sent  to  the\nresponder.  This may be repeated.\n"
                    },
                    {
                        "name": "-timeout _",
                        "content": "Connection  timeout  to the OCSP responder in seconds.  On POSIX systems, when running as\nan OCSP responder, this option also limits the time that the responder is willing to wait\nfor the client request.  This time is measured from the time the  responder  accepts  the\nconnection until the complete request is received.\n"
                    },
                    {
                        "name": "-verify_other _",
                        "content": "File  or  URI  containing additional certificates to search when attempting to locate the\nOCSP response signing certificate. Some responders omit the actual  signer's  certificate\nfrom  the  response:  this option can be used to supply the necessary certificate in such\ncases.  The input can be in PEM, DER, or PKCS#12 format.\n"
                    },
                    {
                        "name": "-trust_other",
                        "content": "The certificates specified by the -verifyother option should be explicitly  trusted  and\nno  additional  checks  will  be  performed  on  them.  This  is useful when the complete\nresponder certificate chain is not available or trusting a root CA is not appropriate.\n"
                    },
                    {
                        "name": "-VAfile _",
                        "content": "File or URI containing explicitly trusted  responder  certificates.   Equivalent  to  the\n-verifyother and -trustother options.  The input can be in PEM, DER, or PKCS#12 format.\n"
                    },
                    {
                        "name": "-noverify",
                        "content": "Don't attempt to verify the OCSP response signature or the nonce values. This option will\nnormally  only be used for debugging since it disables all verification of the responders\ncertificate.\n"
                    },
                    {
                        "name": "-no_intern",
                        "content": "Ignore certificates contained in  the  OCSP  response  when  searching  for  the  signers\ncertificate.  With  this option the signers certificate must be specified with either the\n-verifyother or -VAfile options.\n"
                    },
                    {
                        "name": "-no_signature_verify",
                        "content": "Don't check the signature on the OCSP  response.  Since  this  option  tolerates  invalid\nsignatures on OCSP responses it will normally only be used for testing purposes.\n"
                    },
                    {
                        "name": "-no_cert_verify",
                        "content": "Don't  verify  the OCSP response signers certificate at all. Since this option allows the\nOCSP response to be signed by  any  certificate  it  should  only  be  used  for  testing\npurposes.\n"
                    },
                    {
                        "name": "-no_chain",
                        "content": "Do not use certificates in the response as additional untrusted CA certificates.\n"
                    },
                    {
                        "name": "-no_explicit",
                        "content": "Do not explicitly trust the root CA if it is set to be trusted for OCSP signing.\n"
                    },
                    {
                        "name": "-no_cert_checks",
                        "content": "Don't perform any additional checks on the OCSP response signers certificate.  That is do\nnot  make  any  checks  to  see  if  the signers certificate is authorised to provide the\nnecessary status information: as a result this option should only  be  used  for  testing\npurposes.\n"
                    },
                    {
                        "name": "-validity_period _ -status_age _",
                        "content": "These  options specify the range of times, in seconds, which will be tolerated in an OCSP\nresponse. Each certificate status response includes a  notBefore  time  and  an  optional\nnotAfter  time.  The  current time should fall between these two values, but the interval\nbetween the two times may be only a few seconds.  In  practice  the  OCSP  responder  and\nclients  clocks  may not be precisely synchronised and so such a check may fail. To avoid\nthis the -validityperiod option can be used to specify  an  acceptable  error  range  in\nseconds, the default value is 5 minutes.\n\nIf  the  notAfter  time  is  omitted  from  a  response  then  this means that new status\ninformation is immediately available. In this case the age  of  the  notBefore  field  is\nchecked to see it is not older than age seconds old.  By default this additional check is\nnot performed.\n"
                    },
                    {
                        "name": "-rcid _",
                        "content": "This  option  sets the digest algorithm to use for certificate identification in the OCSP\nresponse. Any digest supported by the openssl-dgst(1) command can be used. The default is\nthe same digest algorithm used in the request.\n"
                    },
                    {
                        "name": "-\u001b[4mdigest",
                        "content": "This option sets digest algorithm to use  for  certificate  identification  in  the  OCSP\nrequest.  Any  digest  supported by the OpenSSL dgst command can be used.  The default is\nSHA-1. This option may be used multiple times to specify the digest  used  by  subsequent\ncertificate identifiers.\n"
                    },
                    {
                        "name": "-CAfile _ -no-CAfile -CApath _ -no-CApath -CAstore _ -no-CAstore",
                        "content": "See \"Trusted Certificate Options\" in openssl-verification-options(1) for details.\n\n-allowproxycerts, -attime, -nochecktime, -checksssig, -crlcheck, -crlcheckall,"
                    },
                    {
                        "name": "-explicit_policy -extended_crl -ignore_critical -inhibit_any -inhibit_map",
                        "content": "-noaltchains, -partialchain, -policy, -policycheck, -policyprint, -purpose, -suiteB128,\n-suiteB128only, -suiteB192, -trustedfirst, -usedeltas, -authlevel, -verifydepth,\n-verifyemail, -verifyhostname, -verifyip, -verifyname, -x509strict -issuerchecks\nSet  various  options  of  certificate chain verification.  See \"Verification Options\" in\nopenssl-verification-options(1) for details.\n"
                    },
                    {
                        "name": "-provider _",
                        "content": ""
                    },
                    {
                        "name": "-provider-path _",
                        "content": ""
                    },
                    {
                        "name": "-propquery _",
                        "content": "See \"Provider Options\" in openssl(1), provider(7), and property(7).\n"
                    },
                    {
                        "name": "OCSP Server Options",
                        "content": ""
                    },
                    {
                        "name": "-index _",
                        "content": "The indexfile parameter is the name  of  a  text  index  file  in  ca  format  containing\ncertificate revocation information.\n\nIf the -index option is specified then this command switches to responder mode, otherwise\nit  is  in client mode. The request(s) the responder processes can be either specified on\nthe command line (using -issuer and -serial options),  supplied  in  a  file  (using  the\n-reqin option) or via external OCSP clients (if -port or -url is specified).\n\nIf the -index option is present then the -CA and -rsigner options must also be present.\n"
                    },
                    {
                        "name": "-CA _",
                        "content": "CA  certificate  corresponding to the revocation information in the index file given with\n-index.  The input can be in PEM, DER, or PKCS#12 format.\n"
                    },
                    {
                        "name": "-rsigner _",
                        "content": "The certificate to sign OCSP responses with.\n"
                    },
                    {
                        "name": "-rkey _",
                        "content": "The private key to sign OCSP responses with: if not present the  file  specified  in  the\n-rsigner option is used.\n"
                    },
                    {
                        "name": "-passin _",
                        "content": "The  private  key  password  source.  For  more  information  about the format of arg see\nopenssl-passphrase-options(1).\n"
                    },
                    {
                        "name": "-rother _",
                        "content": "Additional certificates to include in the OCSP response.  The input can be in  PEM,  DER,\nor PKCS#12 format.\n"
                    },
                    {
                        "name": "-rsigopt _",
                        "content": "Pass options to the signature algorithm when signing OCSP responses.  Names and values of\nthese options are algorithm-specific.\n"
                    },
                    {
                        "name": "-rmd _",
                        "content": "The digest to use when signing the response.\n"
                    },
                    {
                        "name": "-badsig",
                        "content": "Corrupt the response signature before writing it; this can be useful for testing.\n"
                    },
                    {
                        "name": "-resp_no_certs",
                        "content": "Don't include any certificates in the OCSP response.\n"
                    },
                    {
                        "name": "-resp_key_id",
                        "content": "Identify the signer certificate using the key ID, default is to use the subject name.\n"
                    },
                    {
                        "name": "-port _",
                        "content": "Port to listen for OCSP requests on. The port may also be specified using the url option.\nA 0 argument indicates that any available port shall be chosen automatically.\n"
                    },
                    {
                        "name": "-ignore_err",
                        "content": "Ignore  malformed  requests  or  responses:  When  acting  as  an OCSP client, retry if a\nmalformed response is received. When  acting  as  an  OCSP  responder,  continue  running\ninstead of terminating upon receiving a malformed request.\n"
                    },
                    {
                        "name": "-nrequest _",
                        "content": "The OCSP server will exit after receiving number requests, default unlimited.\n"
                    },
                    {
                        "name": "-multi _",
                        "content": "Run  the  specified  number  of  OCSP  responder child processes, with the parent process\nrespawning child processes as needed.  Child processes will  detect  changes  in  the  CA\nindex  file  and automatically reload it.  When running as a responder -timeout option is\nrecommended to limit the time each child  is  willing  to  wait  for  the  client's  OCSP\nresponse.   This  option is available on POSIX systems (that support the fork() and other\nrequired unix system-calls).\n"
                    },
                    {
                        "name": "-nmin _ -ndays _",
                        "content": "Number of minutes or days when fresh revocation information is  available:  used  in  the\nnextUpdate  field.  If  neither  option  is  present then the nextUpdate field is omitted\nmeaning fresh revocation information is immediately available.\n"
                    }
                ]
            },
            "OCSP RESPONSE VERIFICATION": {
                "content": "OCSP Response follows the rules specified in RFC2560.\n\nInitially the OCSP responder certificate is located and the signature  on  the  OCSP  request\nchecked using the responder certificate's public key.\n\nThen a normal certificate verify is performed on the OCSP responder certificate building up a\ncertificate chain in the process. The locations of the trusted certificates used to build the\nchain can be specified by the -CAfile, -CApath or -CAstore options or they will be looked for\nin the standard OpenSSL certificates directory.\n\nIf the initial verify fails then the OCSP verify process halts with an error.\n\nOtherwise  the  issuing  CA  certificate  in  the  request  is compared to the OCSP responder\ncertificate: if there is a match then the OCSP verify succeeds.\n\nOtherwise the OCSP responder certificate's CA is checked against the issuing  CA  certificate\nin  the request. If there is a match and the OCSPSigning extended key usage is present in the\nOCSP responder certificate then the OCSP verify succeeds.\n\nOtherwise, if -noexplicit is not set the root CA of the OCSP responders CA is checked to see\nif it is trusted for OCSP signing. If it is the OCSP verify succeeds.\n\nIf none of these checks is successful then the OCSP verify fails.\n\nWhat this effectively means if that if the OCSP responder certificate is authorised  directly\nby  the  CA  it is issuing revocation information about (and it is correctly configured) then\nverification will succeed.\n\nIf the OCSP responder is a \"global responder\" which can give details about multiple  CAs  and\nhas  its own separate certificate chain then its root CA can be trusted for OCSP signing. For\nexample:\n\nopenssl x509 -in ocspCA.pem -addtrust OCSPSigning -out trustedCA.pem\n\nAlternatively the responder certificate itself can be explicitly  trusted  with  the  -VAfile\noption.\n",
                "subsections": []
            },
            "NOTES": {
                "content": "As  noted,  most  of the verify options are for testing or debugging purposes.  Normally only\nthe -CApath, -CAfile, -CAstore and (if the responder is a 'global VA') -VAfile  options  need\nto be used.\n\nThe  OCSP  server is only useful for test and demonstration purposes: it is not really usable\nas a full OCSP responder. It contains only a very simple HTTP request handling and  can  only\nhandle  the  POST  form  of OCSP queries. It also handles requests serially meaning it cannot\nrespond to new requests until it has processed the current one. The text index file format of\nrevocation is also inefficient for large quantities of revocation data.\n\nIt is possible to run this command in responder mode via a CGI script using  the  -reqin  and",
                "subsections": [
                    {
                        "name": "-respout",
                        "content": ""
                    }
                ]
            },
            "EXAMPLES": {
                "content": "Create an OCSP request and write it to a file:\n\nopenssl ocsp -issuer issuer.pem -cert c1.pem -cert c2.pem -reqout req.der\n\nSend  a  query  to  an OCSP responder with URL http://ocsp.myhost.com/ save the response to a\nfile, print it out in text form, and verify the response:\n\nopenssl ocsp -issuer issuer.pem -cert c1.pem -cert c2.pem \\\n-url http://ocsp.myhost.com/ -resptext -respout resp.der\n\nRead in an OCSP response and print out text form:\n\nopenssl ocsp -respin resp.der -text -noverify\n\nOCSP server on port 8888  using  a  standard  ca  configuration,  and  a  separate  responder\ncertificate. All requests and responses are printed to a file.\n\nopenssl ocsp -index demoCA/index.txt -port 8888 -rsigner rcert.pem -CA demoCA/cacert.pem\n-text -out log.txt\n\nAs above but exit after processing one request:\n\nopenssl ocsp -index demoCA/index.txt -port 8888 -rsigner rcert.pem -CA demoCA/cacert.pem\n-nrequest 1\n\nQuery status information using an internally generated request:\n\nopenssl ocsp -index demoCA/index.txt -rsigner rcert.pem -CA demoCA/cacert.pem\n-issuer demoCA/cacert.pem -serial 1\n\nQuery  status  information using request read from a file, and write the response to a second\nfile.\n\nopenssl ocsp -index demoCA/index.txt -rsigner rcert.pem -CA demoCA/cacert.pem\n-reqin req.der -respout resp.der\n",
                "subsections": []
            },
            "HISTORY": {
                "content": "The -noaltchains option was added in OpenSSL 1.1.0.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved.\n\nLicensed under the Apache License 2.0 (the \"License\").  You may not use this file  except  in\ncompliance  with  the  License.   You  can  obtain  a  copy in the file LICENSE in the source\ndistribution or at <https://www.openssl.org/source/license.html>.\n\n3.0.13                                       2026-07-29                           OPENSSL-OCSP(1SSL)",
                "subsections": []
            }
        }
    }
}