NodeOPCUA API Documentation
    Preparing search index...

    Function setDefaultCertificateSubject

    • Set the default DN suffix (Distinguished Name components such as O, L, C, …) appended to every auto-generated certificate subject.

      Use this function instead of directly assigning to defaultCertificateSubject when consuming the library as an ESM module, because ESM namespace bindings are read-only from the outside and can only be mutated from within the module that declared them.

      Parameters

      • value: string

        e.g. "/O=MyOrg/L=MyCity/C=US"

      Returns void

      if the value is empty or does not match the expected /KEY=VALUE/… pattern.

      import { setDefaultCertificateSubject } from "node-opcua-common";
      setDefaultCertificateSubject("/O=MyOrg/L=MyCity/C=US");