NodeOPCUA API Documentation
    Preparing search index...

    Interface ICertificateKeyPairProviderWithLocation

    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.

    interface ICertificateKeyPairProviderWithLocation {
        certificateFile: string;
        privateKeyFile: string;
        getCertificate(): DER;
        getCertificateChain(): DER[];
        getPrivateKey(): PrivateKey;
        invalidate?(): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index
    certificateFile: string
    privateKeyFile: string
    • 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 void