NodeOPCUA API Documentation
    Preparing search index...

    Class InMemoryCertificateKeyPairProvider

    Extends ICertificateKeyPairProvider with diagnostic file-location properties so that consumers can report where certificates are stored (real path or "<in-memory>").

    Does not alter the public ICertificateKeyPairProvider interface — zero breaking change to ServerSecureChannelParent, ClientSecureChannelParent, or any external implementation.

    Implements

    Index
    • Parameters

      • Optionalchain: DER[]
      • Optionalkey: PrivateKey

      Returns InMemoryCertificateKeyPairProvider

    • Auto-provision a self-signed certificate + private key entirely in-memory using node-opcua-crypto/web.

      If a cert+key pair was already provided at construction, this is a no-op.

      No disk, no openssl, no node:fs.

      Parameters

      Returns Promise<void>

    • Returns DER

    • The raw private key. Kept for compatibility — new code should prefer ICertificateKeyPairProvider2.getKeyOperations (via getKeyOperationsFromProvider), which works whether the key is local or HSM/KMS-held; an opaque provider implements this method by throwing PrivateKeyUnavailableError.

      Returns PrivateKey

    • Returns Record<string, string>