nginx proxy doesn't cache OCSP responses -


i want use nginx caching proxy in front of ocsp responder. 'an ocsp request using post method constructed follows: content-type header has value "application/ocsp-request" while body of message binary value of der encoding of ocsprequest.' (from rfc2560)

hence, configured nginx follows:

proxy_cache_path  /tmp/nginx/cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m; server {         # make site accessible http://localhost/         server_name localhost;         location / {                 proxy_pass  http://213.154.225.237:80; #ocsp.cacert.org                 proxy_cache my-cache;                 proxy_cache_methods    post;                 proxy_cache_valid  200 302  60m;                 proxy_cache_valid  404      1m;                 proxy_cache_key        "$uri$request_body";                 expires off;                 proxy_set_header        host            $host;                 proxy_set_header        x-real-ip       $remote_addr;         } ) 

i can access ocsp responder through nginx , responses received expected - no issue. problem nginx doesn't cache responses. nonces not being sent part of request. using wireshark verified requests identical (on http layer). how configure nginx caches responses?

note, use following command testing:

openssl ocsp -issuer cacert.crt -no_nonce -cafile cabundle.crt -url http://localhost/ -serial <serial> 

there lot more caching ocsp responses caching der made of. lightweight ocsp profile , make sure responder include necessary headers response.

i recommend use specially build ocsp proxy cache, there many out there. example axway's validation authority repeater choice.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -