{"id":153,"date":"2012-06-30T18:21:42","date_gmt":"2012-07-01T02:21:42","guid":{"rendered":"http:\/\/unmitigatedrisk.com\/?p=153"},"modified":"2012-06-30T21:22:45","modified_gmt":"2012-07-01T05:22:45","slug":"putting-ocsp-on-a-cdn","status":"publish","type":"post","link":"https:\/\/unmitigatedrisk.com\/?p=153","title":{"rendered":"Serving OCSP on a CDN"},"content":{"rendered":"<p>So last week we moved our revocation repositories behind a CDN, this has a <a href=\"http:\/\/blog.cloudflare.com\/how-cloudflare-is-making-ssl-fast\">number of great benefits<\/a> but it does have downsides though, for example.<\/p>\n<ol>\n<li><strong>Cache misses result in a slower response <\/strong>\u2013 About a 110ms in my tests.<\/li>\n<li><strong>OCSP clients that create POSTs get a slower response<\/strong> \u2013 This is because they are treated like a cache miss.<\/li>\n<\/ol>\n<p>Our CDN provider mitigates much he first issue by having a pre-loader that ensures its cache is pre-populated based on request history.<\/p>\n<p>Addressing the second issue requires the CDN provider to be aware of OCSP protocol semantics, specifically the fact that one can compute what a GET request would look like by simply Base64 encoding the binary body of the POST variation.<\/p>\n<p>A CDN with knowledge of this can optimize out the POST derived cache miss, our CDN has done this the change has not yet propagated to all of their datacenters but where it has POST performs the same as a GET.<\/p>\n<p>Hopefully this optimization will have propagated to all their datacenters by next week, when this logic is fully deployed the clients that generate POST based OCSP requests (without a nonce) will also have ~100ms response times.<\/p>\n<p>I should probably ad that in our case almost all of the POST based OCSP requests we\u00a0receive\u00a0come from Firefox and do not contain a nonce, hopefully soon <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=436414\">Firefox will move to using GET for requests without a nonce like other clients<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So last week we moved our revocation repositories behind a CDN, this has a number of great benefits but it does have downsides though, for example. Cache misses result in a slower response \u2013 About a 110ms in my tests. OCSP clients that create POSTs get a slower response \u2013 This is because they are [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[4],"tags":[25,171,24],"class_list":["post-153","post","type-post","status-publish","format-standard","hentry","category-thoughts","tag-ocsp","tag-performance","tag-revocation"],"_links":{"self":[{"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/posts\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=153"}],"version-history":[{"count":0,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/posts\/153\/revisions"}],"wp:attachment":[{"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}