tlsSocket.getCipher()


  • 返回: <Object>
    • name <string> 密码套件的 OpenSSL 名称。
    • standardName <string> 密码套件的 IETF 名称。
    • version <string> 此密码套件支持的最低 TLS 协议版本。

返回包含协商密码套件信息的对象。

例如:

{
    "name": "AES128-SHA256",
    "standardName": "TLS_RSA_WITH_AES_128_CBC_SHA256",
    "version": "TLSv1.2"
}

有关详细信息,请参阅 SSL_CIPHER_get_name

  • Returns: <Object>
    • name <string> OpenSSL name for the cipher suite.
    • standardName <string> IETF name for the cipher suite.
    • version <string> The minimum TLS protocol version supported by this cipher suite.

Returns an object containing information on the negotiated cipher suite.

For example:

{
    "name": "AES128-SHA256",
    "standardName": "TLS_RSA_WITH_AES_128_CBC_SHA256",
    "version": "TLSv1.2"
}

See SSL_CIPHER_get_name for more information.