NodeOPCUA API Documentation
    Preparing search index...

    Interface IOPCUASecureObjectOptions

    interface IOPCUASecureObjectOptions {
        certificateFile?: string;
        certificateKeyPairProvider?: ICertificateKeyPairProvider;
        privateKeyFile?: string;
    }
    Index

    Properties

    certificateFile?: string
    certificateKeyPairProvider?: ICertificateKeyPairProvider

    Optional pre-built certificate + private-key provider. When supplied, OPCUASecureObject.getCertificate() / .getCertificateChain() / .getPrivateKey() delegate to this object verbatim, and the disk-backed path (fs.existsSync + readCertificateChain + readPrivateKey) is not used.

    Intended for browser builds (bundled via esbuild) and test fixtures that want to stage a cert+key pair without staging PKI folders on disk.

    When present, certificateFile / privateKeyFile become optional and may be omitted. When absent, those two fields remain required strings and a DiskCertificateKeyPairProvider is created automatically.

    privateKeyFile?: string