阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js tlsSocket.renegotiate

      Node.js tlsSocket.renegotiate(options, callback)

      新增于: v0.11.8

      • options < Object>
        • rejectUnauthorized < boolean> If not false, the server certificate is verified against the list of supplied CAs. An ‘error’ event is emitted if verification fails; err.code contains the OpenSSL error code. Default: true.
        • requestCert
      • callback < Function> A function that will be called when the renegotiation request has been completed.

      The tlsSocket.renegotiate() method initiates a TLS renegotiation process. Upon completion, the callback function will be passed a single argument that is either an Error (if the request failed) or null.

      This method can be used to request a peer’s certificate after the secure connection has been established.

      When running as the server, the socket will be destroyed with an error after handshakeTimeout timeout.


      更多内容请参考:Node.js tls 安全传输层,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录