Don't error log when no OCSP responder URL exists (#8881)

This commit is contained in:
Christian 2022-08-23 00:38:09 +02:00 committed by GitHub
parent 363a7f7fb2
commit fe09f6d096
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,10 +120,14 @@ end
-- While this has no functional implications, it generates extra load on OCSP servers.
local function fetch_and_cache_ocsp_response(uid, der_cert)
local url, err = ocsp.get_ocsp_responder_from_der_chain(der_cert)
if not url then
if not url and err then
ngx.log(ngx.ERR, "could not extract OCSP responder URL: ", err)
return
end
if not url and not err then
ngx.log(ngx.DEBUG, "no OCSP responder URL returned")
return
end
local request
request, err = ocsp.create_ocsp_request(der_cert)