Server.prototype.setSecureContext - Node documentation
method Server.prototype.setSecureContext

Usage

import { Server } from "node:tls";

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 options arguments (e.g. key, cert, ca, etc).

Return Type

void