Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OCSP over SSL/TLS

As far as I know, OCSP only provides explicit means for requests and responses to be signed ([RFC2560, page 7] for requests, and [RFC2560, page 8] for responses), but it does not make any mention about encryption. Is it typical (or even possible, which I suppose that of course it is) to run OCSP over SSL/TLS to also guarantee its confidentiality?

Thanks.

like image 418
Ginswich Avatar asked Nov 11 '12 23:11

Ginswich


People also ask

What is OCSP in SSL?

OCSP, or the online certificate status protocol (OCSP), is an internet protocol through which web browsers determine the revocation status of SSL/TLS certificates installed on websites. Although SSL/TLS certificates come with their validity period, they need to be revoked under certain situations.

Does OCSP use HTTPS?

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 (Firefox) use OCSP to validate HTTPS certificates, while others have disabled it.

Is OCSP secure?

Then, every time a client opens the website, the server is ready with updated data of the security certificate. OCSP stapling is trustworthy because the CA that initially issued the server certificate sends a signed, time-stamped response to the request. Therefore, the client can fully trust the response.

Should I enable OCSP?

Why would you use OCSP stapling? This simple addition to your website's SSL certificate improves both security and performance. This in turn provides trust in your website and end user confidence in using your site.


2 Answers

Yes, it is possible using SSL/TLS. But consider this:

When certificates include a cRLDistributionPoints extension with an https URI or similar scheme, circular dependencies can be introduced. The relying party is forced to perform an additional path validation in order to obtain the CRL required to complete the initial path validation! Circular conditions can also be created with an https URI (or similar scheme) in the authorityInfoAccess or subjectInfoAccess extensions. At worst, this situation can create unresolvable dependencies.

Taken from RFC5280, Section 8. This section addresses the problem using https for CRL distribution points. But you will have the same issue using SSL/TLS for OCSP requests: you have to check the validity of the server certificate...

like image 62
duddex Avatar answered Oct 18 '22 18:10

duddex


In the appendix of the RFC2560 is the following written:

A.1.1 Request [...] Where privacy is a requirement, OCSP transactions exchanged using HTTP MAY be protected using either TLS/SSL or some other lower layer protocol.

But the most OCSP-Responder only provide HTTP without TLS/SSL.

like image 21
Benny Geitner Avatar answered Oct 18 '22 16:10

Benny Geitner