indutny / indutny/ocsp

error from ocsp agent

Open
#32 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
86
Forks
46
PR merge metrics
No merged PRs in 30d

Description

/home/noms/spoop2/server/node_modules/ocsp/lib/ocsp/agent.js:70
var cert = socket.ssl.getPeerCertificate(true);
^

TypeError: Cannot read property 'getPeerCertificate' of null
at Agent.handleOCSPResponse (/home/noms/spoop2/server/node_modules/ocsp/lib/ocsp/agent.js:70:25)
at TLSSocket. (/home/noms/spoop2/server/node_modules/ocsp/lib/ocsp/agent.js:52:17)
at TLSSocket.emit (events.js:202:15)
at TLSSocket._finishInit (_tls_wrap.js:631:8)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at node_modules/ocsp/lib/ocsp/agent.js:70 and trace the call from the TLSSocket callback at line 52. Reproduce the reported TypeError and inspect the surrounding TLS/OCSP handling to determine why the SSL object is null; done means the reported failure is resolved and verified with a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.