Skip to main content
TLSSocket.prototype.getEphemeralKeyInfo - node__tls.d.ts - Node documentation
method TLSSocket.prototype.getEphemeralKeyInfo

Usage in Deno

```typescript import { TLSSocket } from "node:node__tls.d.ts"; ```
TLSSocket.prototype.getEphemeralKeyInfo():
EphemeralKeyInfo
| object
| null
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; `null` is returned if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The `name` property is available only when type is `'ECDH'`. For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`.

Return Type

EphemeralKeyInfo
| object
| null