事件:'OCSPResponse'


\Event: 'OCSPResponse'

新增于: v0.11.13

如果在创建 tls.TLSSocket 并收到 OCSP 响应时设置了 requestOCSP 选项,则会触发 'OCSPResponse' 事件。监听器回调在调用时传入一个参数:

\The 'OCSPResponse' event is emitted if the requestOCSP option was set when the tls.TLSSocket was created and an OCSP response has been received. The listener callback is passed a single argument when called:

  • response <Buffer> 服务器的 OCSP 响应

    \response <Buffer> The server's OCSP response

通常,response 是来自服务器 CA 的数字签名对象,其中包含有关服务器证书吊销状态的信息。

\Typically, the response is a digitally signed object from the server's CA that contains information about server's certificate revocation status.

AltStyle によって変換されたページ (->オリジナル) /