Don't error log when no OCSP responder URL exists (#8881)
This commit is contained in:
parent
363a7f7fb2
commit
fe09f6d096
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue