事件:'OCSPResponse'


【Event: 'OCSPResponse'

如果在创建 tls.TLSSocket 时设置了 requestOCSP 选项,并且已收到 OCSP 响应,将会触发 '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 是来自服务器 CA 的数字签名对象,包含有关服务器证书吊销状态的信息。

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