Online Certificate Status Protocol
Online Certificate Status Protocol | |
Status | Proposed Standard |
---|---|
Year started | 4 February 2002[1] |
First published | 11 February 2013[1] |
Authors |
|
Base standards |
|
Domain | Digital certificate |
Website |
The Online Certificate Status Protocol (OCSP) is an Internet protocol used for obtaining the revocation status of an X.509 digital certificate.[2] It is described in RFC 6960 and is on the Internet standards track. It was created as an alternative to certificate revocation lists (CRL), specifically addressing certain problems associated with using CRLs in a public key infrastructure (PKI).[3] Messages communicated via OCSP are encoded in ASN.1 and are usually communicated over HTTP. The "request/response" nature of these messages leads to OCSP servers being termed OCSP responders.
Some web browsers (e.g., Firefox[4]) use OCSP to validate HTTPS certificates, while others have disabled it.[5][6] Most OCSP revocation statuses on the Internet disappear soon after certificate expiration.[7]
Comparison to CRLs
- Since an OCSP response contains less data than a typical certificate revocation list (CRL), it puts less burden on network and client resources.[8]
- Since an OCSP response has less data to parse, the client-side libraries that handle it can be less complex than those that handle CRLs.[9]
- OCSP discloses to the responder that a particular network host used a particular certificate at a particular time. OCSP does not mandate encryption, so other parties may intercept this information.[2]
Basic PKI implementation
- Alice and Bob have public key certificates issued by Carol, the certificate authority (CA).
- Alice wishes to perform a transaction with Bob and sends him her public key certificate.
- Bob, concerned that Alice's private key may have been compromised, creates an 'OCSP request' that contains Alice's certificate serial number and sends it to Carol.
- Carol's OCSP responder reads the certificate serial number from Bob's request. The OCSP responder uses the certificate serial number to look up the revocation status of Alice's certificate. The OCSP responder looks in a CA database that Carol maintains. In this scenario, Carol's CA database is the only trusted location where a compromise to Alice's certificate would be recorded.
- Carol's OCSP responder confirms that Alice's certificate is still OK, and returns a signed, successful 'OCSP response' to Bob.
- Bob cryptographically verifies Carol's signed response. Bob has stored Carol's public key sometime before this transaction. Bob uses Carol's public key to verify Carol's response.
- Bob completes the transaction with Alice.
Protocol details
An OCSP responder (a server typically run by the certificate issuer) may return a signed response signifying that the certificate specified in the request is 'good', 'revoked', or 'unknown'. If it cannot process the request, it may return an error code.
The OCSP request format supports additional extensions. This enables extensive customization to a particular PKI scheme.
OCSP can be vulnerable to replay attacks,[10] where a signed, 'good' response is captured by a malicious intermediary and replayed to the client at a later date after the subject certificate may have been revoked. OCSP allows a nonce to be included in the request that may be included in the corresponding response. Because of high load, most OCSP responders do not use the nonce extension to create a different response for each request, instead using presigned responses with a validity period of multiple days. Thus, the replay attack is a major threat to validation systems.
OCSP can support more than one level of CA. OCSP requests may be chained between peer responders to query the issuing CA appropriate for the subject certificate, with responders validating each other's responses against the root CA using their own OCSP requests.
An OCSP responder may be queried for revocation information by delegated path validation (DPV) servers. OCSP does not, by itself, perform any DPV of supplied certificates.
The key that signs a response need not be the same key that signed the certificate. The certificate's issuer may delegate another authority to be the OCSP responder. In this case, the responder's certificate (the one that is used to sign the response) must be issued by the issuer of the certificate in question, and must include a certain extension that marks it as an OCSP signing authority (more precisely, an extended key usage extension with the OID {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) keyPurpose(3) ocspSigning(9)})
Privacy concerns
OCSP checking creates a privacy concern for some users, since it requires the client to contact a third party (albeit a party trusted by the client software vendor) to confirm certificate validity. OCSP stapling is a way to verify validity without disclosing browsing behavior to the CA.[2]
Criticisms
OCSP-based revocation is not an effective technique to mitigate against the compromise of an HTTPS server's private key. An attacker who has compromised a server's private key typically needs to be in a man-in-the-middle position on the network to abuse that private key and impersonate a server. An attacker in such a position is also typically in a position to interfere with the client's OCSP queries. Because most clients will silently ignore OCSP if the query times out, OCSP is not a reliable means of mitigating HTTPS server key compromise.[11]
The MustStaple TLS extension in a certificate can require that the certificate be verified by a stapled OCSP response, mitigating this problem.[8] OCSP also remains a valid defense against situations where the attacker is not a "man-in-the-middle" (code-signing or certificates issued in error).
The OCSP protocol assumes the requester has network access to connect to an appropriate OCSP responder. Some requesters may not be able to connect because their local network prohibits direct Internet access (a common practice for internal nodes in a data center). Forcing internal servers to connect to the Internet in order to use OCSP contributes to the de-perimeterisation trend. The OCSP stapling protocol is an alternative that allows servers to cache OCSP responses, which removes the need for the requestor to directly contact the OCSP responder.
Browser support
There is wide support for OCSP amongst most major browsers:
- Internet Explorer is built on the CryptoAPI of Windows and thus starting with version 7 on Windows Vista (not XP[12]) supports OCSP checking.[13]
- All versions of Mozilla Firefox support OCSP checking. Firefox 3 enables OCSP checking by default.[14]
- Safari on macOS supports OCSP checking. It is enabled by default as of Mac OS X 10.7 (Lion). Prior to that, it has to be manually activated in Keychain preferences.[15]
- Versions of Opera from 8.0[16][17] to the current version support OCSP checking.
However, Google Chrome is an outlier. Google disabled OCSP checks by default in 2012, citing latency and privacy issues[18] and instead uses their own update mechanism to send revoked certificates to the browser.[19]
Implementations
Several open source and proprietary OCSP implementations exist, including fully featured servers and libraries for building custom applications. OCSP client support is built into many operating systems, web browsers, and other network software due to the popularity of HTTPS and the World Wide Web.
Server
Open source
- Boulder,[20] CA and OCSP responder developed and used by Let's Encrypt (Go)
- DogTag,[21] Open source certificate authority CA, CRL and OCSP responder.
- EJBCA,[22] CA and OCSP responder (Java)
- XiPKI,[23] CA and OCSP responder. With support of RFC 6960 and SHA3 (Java)
- OpenCA OCSP Responder [24] Standalone OCSP responder from the OpenCA Project (C)
Proprietary
- Certificate Services [25] CA and OCSP responder included with Windows Server
Library
Open source
Client
See also
- Certificate revocation list
- Certificate authority
- Server-based Certificate Validation Protocol
- OCSP stapling
- Certificate Transparency
References
- ↑ 1.0 1.1 "History for draft-ietf-pkix-rfc2560bis-20". https://datatracker.ietf.org/doc/rfc6960/history/.
- ↑ 2.0 2.1 2.2 A., Jesin (June 12, 2014). "How To Configure OCSP Stapling on Apache and Nginx". Community Tutorials. Digital Ocean, Inc.. https://www.digitalocean.com/community/tutorials/how-to-configure-ocsp-stapling-on-apache-and-nginx.
- ↑ "OCSP Stapling". GlobalSign Support. GMO GlobalSign Inc.. August 1, 2014. https://support.globalsign.com/customer/portal/articles/1618853-ocsp-stapling.
- ↑ "CA/Revocation Checking in Firefox". https://wiki.mozilla.org/CA/Revocation_Checking_in_Firefox#OCSP.
- ↑ "Are revoked certificates detected in Safari and Chrome?". https://community.letsencrypt.org/t/are-revoked-certificates-detected-in-safari-and-chrome/42677.
- ↑ "CRLSets". https://www.chromium.org/Home/chromium-security/crlsets/.
- ↑ Korzhitskii, Nikita; Carlsson, Niklas (2021). "Revocation Statuses on the Internet". PAM 2021. 12671. pp. 175–191. doi:10.1007/978-3-030-72582-2_11. ISBN 978-3-030-72582-2.
- ↑ 8.0 8.1 Gibson, Steve. "Security Certificate Revocation Awareness: The case for "OCSP Must-Staple"". Gibson Research Corporation. https://www.grc.com/revocation/ocsp-must-staple.htm.
- ↑ Keeler, David (July 29, 2013). "OCSP Stapling in Firefox". Mozilla Security Blog. Mozilla Foundation. https://blog.mozilla.org/security/2013/07/29/ocsp-stapling-in-firefox/.
- ↑ RFC 6960, section 5, Security Considerations
- ↑ "No, Don't Enable Revocation Checking". 19 April 2014. https://www.imperialviolet.org/2014/04/19/revchecking.html.
- ↑ "Windows XP Certificate Status and Revocation Checking". Microsoft. http://social.technet.microsoft.com/wiki/contents/articles/4954.windows-xp-certificate-status-and-revocation-checking.aspx#Certificate_Revocation_Process/.
- ↑ "What's New in Certificate Revocation in Windows Vista and Windows Server 2008". Microsoft. https://technet.microsoft.com/en-us/library/ee619736(v=ws.10).aspx/.
- ↑ "Mozilla Bug 110161 – Enable OCSP by Default". Mozilla. 1 October 2007. https://bugzilla.mozilla.org/show_bug.cgi?id=110161.
- ↑ Wisniewski, Chester (26 March 2011). "Apple users left to defend themselves against certificate attacks". Sophos. http://nakedsecurity.sophos.com/2011/03/26/apple-users-left-to-defend-themselves-against-certificate-attacks/.
- ↑ Pettersen, Yngve Nysæter (November 9, 2006). "Introducing Extended Validation Certificates". Opera Software. http://labs.opera.com/news/2006/11/09/.
- ↑ Pettersen, Yngve Nysæter (3 July 2008). "Rootstore newsletter". Opera Software. http://my.opera.com/rootstore/blog/2008/07/03/rootstore-newsletter.
- ↑ Langley, Adam (5 Feb 2012). "Revocation checking and Chrome's CRL". https://www.imperialviolet.org/2012/02/05/crlsets.html.
- ↑ "Chrome does certificate revocation better", April 21, 2014, Larry Seltzer, ZDNet
- ↑ "Boulder – an ACME CA". 16 March 2018. https://github.com/letsencrypt/boulder.
- ↑ "Dogtag Certificate System". https://www.dogtagpki.org.
- ↑ "EJBCA – Open Source PKI Certificate Authority". PrimeKey. 2 February 2018. https://www.ejbca.org/.
- ↑ "XiPKI". 13 March 2018. https://github.com/xipki/xipki.
- ↑ "OpenCA OCSP". https://www.openca.org/projects/ocspd/.
- ↑ "Certificate Services (Windows)". Microsoft. 2018. https://msdn.microsoft.com/en-us/library/windows/desktop/aa376539(v=vs.85).aspx.
- ↑ "Package ocsp". 25 February 2018. https://godoc.org/github.com/cloudflare/cfssl/ocsp.
- ↑ "OCSP_response_status". OpenSSL. 2017. https://www.openssl.org/docs/manmaster/man3/OCSP_basic_sign.html.
- ↑ "OCSP in wolfSSL Embedded SSL – wolfSSL" (in en-US). 2014-01-27. https://www.wolfssl.com/ocsp-in-wolfssl-embedded-ssl-2/.
External links
- Public Key Infrastructure: Operational Protocols at Curlie
- RFC 2560, X.509 Internet Public Key Infrastructure Online Certificate Status Protocol – OCSP
- RFC 4806, Online Certificate Status Protocol (OCSP) Extensions to IKEv2
- RFC 5019, The Lightweight Online Certificate Status Protocol (OCSP) Profile for High-Volume Environments
- RFC 6960, X.509 Internet Public Key Infrastructure Online Certificate Status Protocol – OCSP
- Processor.com April, 2009 article about Online Certificate Status Protocol
Original source: https://en.wikipedia.org/wiki/Online Certificate Status Protocol.
Read more |