阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js tls Server secureConnection 事件

      Node.js tls Server secureConnection 事件

      新增于: v0.3.2

      The ‘secureConnection’ event is emitted after the handshaking process for a new connection has successfully completed. The listener callback is passed a single argument when called:

      tlsSocket < tls.TLSSocket> The established TLS socket. The tlsSocket.authorized property is a boolean indicating whether the client has been verified by one of the supplied Certificate Authorities for the server. If tlsSocket.authorized is false, then socket.authorizationError is set to describe how authorization failed. Note that depending on the settings of the TLS server, unauthorized connections may still be accepted.

      The tlsSocket.alpnProtocol property is a string that contains the selected ALPN protocol. When ALPN has no selected protocol, tlsSocket.alpnProtocol equals false.

      The tlsSocket.servername property is a string containing the server name requested via SNI.


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


      目录
      本文目录
      目录