Dynamic module tls

Index

Variables

Interfaces

Classes

Functions

Variables

CLIENT_RENEG_LIMIT: number

CLIENT_RENEG_WINDOW: number

Functions

connect(options: TlsOptions, secureConnectionListener?: () => void): ClearTextStream

Parameters

  • options: TlsOptions
  • secureConnectionListener?: () => void optional

Returns

ClearTextStream

connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): ClearTextStream

Parameters

  • port: number
  • host?: string optional
  • options?: ConnectionOptions optional
  • secureConnectListener?: () => void optional

Returns

ClearTextStream

connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): ClearTextStream

Parameters

  • port: number
  • options?: ConnectionOptions optional
  • secureConnectListener?: () => void optional

Returns

ClearTextStream

createSecurePair(credentials?: Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair

Parameters

  • credentials?: Credentials optional
  • isServer?: boolean optional
  • requestCert?: boolean optional
  • rejectUnauthorized?: boolean optional

Returns

SecurePair

createServer(options: TlsOptions, secureConnectionListener?: (cleartextStream: "tls".ClearTextStream) => void): Server

Parameters

  • options: TlsOptions
  • secureConnectionListener?: (cleartextStream: "tls".ClearTextStream) => void optional

Returns

Server