UNPKG

node-opcua-certificate-manager

Version:

pure nodejs OPCUA SDK - module certificate-manager

10 lines 506 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeSubject = makeSubject; const certificate_manager_1 = require("./certificate_manager"); function makeSubject(applicationName, hostname) { const commonName = `${applicationName}@${hostname}`.substring(0, 63); const dc = `${hostname}`.substring(63); return `/CN=${commonName}` + `/DC=${dc}` + certificate_manager_1.OPCUACertificateManager.defaultCertificateSubject; } //# sourceMappingURL=make_subject.js.map