NodeOPCUA API Documentation
    Preparing search index...

    Class InMemoryCertificateStore

    Implements

    Index

    Constructors

    Properties

    referenceCounter: number = 0

    Shared ownership counter.

    Multiple clients/servers may share the same store. dispose() only releases resources when the counter reaches zero — preventing premature cleanup.

    Methods

    • Register an issuer (CA) certificate so that certificates signed by this CA can be validated.

      Parameters

      • certificate: DER

        the issuer certificate (DER)

      • Optional_validate: boolean

        whether to validate the issuer cert itself (default: true)

      • Optional_addInTrustList: boolean

        also add to the trusted list

      Returns Promise<void>

    • Verify a certificate against the store.

      Returns a string status: "Good", "BadCertificateUntrusted", "BadCertificateTimeInvalid", etc.

      Parameters

      • certificate: DER | DER[]
      • Optional_options: { acceptOutdatedCertificate?: boolean }

      Returns Promise<string>