Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "tls"

Index

Type aliases

SecureVersion

SecureVersion: "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1"

Variables

Const CLIENT_RENEG_LIMIT

CLIENT_RENEG_LIMIT: number

Const CLIENT_RENEG_WINDOW

CLIENT_RENEG_WINDOW: number

Const DEFAULT_ECDH_CURVE

DEFAULT_ECDH_CURVE: string

Const rootCertificates

rootCertificates: ReadonlyArray<string>

Functions

checkServerIdentity

  • checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined
  • Parameters

    Returns Error | undefined

connect

  • Parameters

    • options: ConnectionOptions
    • Optional secureConnectListener: function
        • (): void
        • Returns void

    Returns TLSSocket

  • Parameters

    • port: number
    • Optional host: string
    • Optional options: ConnectionOptions
    • Optional secureConnectListener: function
        • (): void
        • Returns void

    Returns TLSSocket

  • Parameters

    • port: number
    • Optional options: ConnectionOptions
    • Optional secureConnectListener: function
        • (): void
        • Returns void

    Returns TLSSocket

createSecureContext

createSecurePair

  • createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair
  • deprecated

    Parameters

    • Optional credentials: SecureContext
    • Optional isServer: boolean
    • Optional requestCert: boolean
    • Optional rejectUnauthorized: boolean

    Returns SecurePair

createServer

  • createServer(secureConnectionListener?: function): Server
  • createServer(options: TlsOptions, secureConnectionListener?: function): Server
  • Parameters

    • Optional secureConnectionListener: function

    Returns Server

  • Parameters

    Returns Server

getCiphers

  • getCiphers(): string[]
  • Returns string[]

Generated using TypeDoc