iya-sts
    Preparing search index...

    Class export=

    Index
    HANDSHAKE_WAIT_MS: 3000 = HANDSHAKE_WAIT_MS

    How long a handshake waits for a staple being made.

    JOB: "tls.ocsp-staple-refresh" = JOB

    The job's id, for a test and the documentation.

    • Hands node's callback the current staple, or none. Never an error.

      Parameters

      • listener: string

        the listener's id

      • label: string

        what a log line calls it

      • certificate: any

        the DER node names (the context's certificate)

      • issuer: any

        the DER of its issuer, from the chain the context sends

      • callback: any

        node's (err, response)

      Returns void

    • Whether a staple can be sent at nowMs: made, and before its nextUpdate.

      Parameters

      • staple: Staple

        the staple

      • nowMs: number

        the time

      Returns boolean

      true when it is current

    • Whether the listeners staple now: tls.ocspStapling, auto resolved by mode.staplesOcsp().

      Returns boolean

      true when a staple is sent to a client that asks

    • The job's interval: a quarter of pki.crlLifetimeMinutes (the nextUpdate every response carries), between 30 seconds and 15 minutes.

      Returns number

      milliseconds

    • Parameters

      • staple: Staple
      • why: string

      Returns void

    • Forgets every staple: the listener certificate changed, so the next handshake makes the staple for the certificate it now presents.

      Returns void

    • Answers OCSPRequest on a TLS server with this process's staple. Idempotent per server.

      Parameters

      • server: any

        a tls.Server (or an http2/https secure server)

      • listener: string

        the listener's id (main, ldaps, debugger, custom:<id>)

      • label: string

        what a log line calls it

      Returns boolean

      true when it is installed (or already was)

    • Makes (or re-makes) one staple. Coalesced: a making already under way is the one returned. Never rejects.

      Parameters

      • staple: Staple

        the staple

      Returns Promise<void>

      a promise settled when it is made or has failed

    • Why the job is off in this process, or ''.

      Returns string

      the reason

    • Re-makes every staple a listener served in the last day, and drops the rest. The job's run; a test calls it too. Never rejects.

      Returns Promise<any>

      a promise of { staples, made, failing, revoked, dropped }

    • What each staple is, without its bytes: for a test and a status view.

      Returns any[]

      the rows

    • Parameters

      • certificate: any
      • issuer: any
      • listener: string

      Returns Staple

    • Re-makes at once every staple about a serial whose status changed in this process (pki_revocation.onStatusChange()).

      Parameters

      • serialHex: string

        the serial

      Returns number

      how many staples were about it

    • Parameters

      • staple: Staple
      • made: any

      Returns void