tlsSocket.getEphemeralKeyInfo()

tlsSocket.getEphemeralKeyInfo()

Returns an object representing the type, name, and size of parameter of an ephemeral key exchange in Perfect Forward Secrecy on a client connection. It returns an empty object when the key exchange is not ephemeral. As this is only supported on a client socket, it returns null if called on a server socket. The supported types are 'DH' and 'ECDH'. The name property is only available in 'ECDH'.

Example:

{ type: 'ECDH', name: 'prime256v1', size: 256 }
doc_Nodejs
2016-04-30 04:42:40
Comments
Leave a Comment

Please login to continue.