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

Usage in Deno

```typescript import { TLSSocket } from "node:node__tls.d.ts"; ```
TLSSocket.prototype.getX509Certificate(): X509Certificate | undefined
Returns the local certificate as an `X509Certificate` object. If there is no local certificate, or the socket has been destroyed,`undefined` will be returned.

Return Type

X509Certificate | undefined