Skip to main content
Server.prototype.setSecureContext - node__tls.d.ts - Node documentation
method Server.prototype.setSecureContext

Usage in Deno

```typescript import { Server } from "node:node__tls.d.ts"; ```
Server.prototype.setSecureContext(options: SecureContextOptions): void
The `server.setSecureContext()` method replaces the secure context of an existing server. Existing connections to the server are not interrupted.

Parameters

An object containing any of the possible properties from the [createSecureContext](../.././node__tls.d.ts/~/createSecureContext) `options` arguments (e.g. `key`, `cert`, `ca`, etc).

Return Type

void