How to use node-opcua-certificate-manager - 3 common examples

To help you get started, we’ve selected a few node-opcua-certificate-manager examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-server / src / base_server.js View on Github external
options.privateKeyFile = options.privateKeyFile || constructFilename("certificates/PKI/own/private/private_key.pem");

        super(options);

        const self = this;
        self.endpoints = [];
        self.options = options;

        this.serverInfo = _.clone(default_server_info);
        this.serverInfo = _.extend(this.serverInfo, options.serverInfo);

        self.serverInfo.applicationName = new LocalizedText(self.serverInfo.applicationName);

        this.serverInfo = new endpoints_service.ApplicationDescription(this.serverInfo);

        self.serverCertificateManager = options.serverCertificateManager || new CertificateManager({
            name: "certificates"
        });

    }
github node-opcua / node-opcua / packages / node-opcua-server / source / base_server.ts View on Github external
options.privateKeyFile = options.privateKeyFile ||
          constructFilename("certificates/PKI/own/private/private_key.pem");

        super(options);

        this.capabilitiesForMDNS = [];
        this.endpoints = [];
        this.options = options;

        const serverInfo: any = _.extend(_.clone(default_server_info), options.serverInfo);
        serverInfo.applicationName = new LocalizedText(serverInfo.applicationName);
        this.serverInfo = new ApplicationDescription(serverInfo);

        this.serverCertificateManager = options.serverCertificateManager
          || new OPCUACertificateManager({
            name: "certificates"
        });

    }
github node-opcua / node-opcua / packages / node-opcua-secure-channel / source / server / server_secure_channel_layer.ts View on Github external
private async checkCertificate(certificate: Certificate | null): Promise {
        if (!certificate) {
            return StatusCodes.Good;
        }
        if (!this.certificateManager) {
            return checkCertificateValidity(certificate);
        }
        return await this.certificateManager.checkCertificate(certificate);
    }

node-opcua-certificate-manager

pure nodejs OPCUA SDK - module certificate-manager

MIT
Latest version published 7 days ago

Package Health Score

83 / 100
Full package analysis