Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function main() {
const tmpFolder = path.join(__dirname, "../certificates/myApp");
const applicationGroup = new CertificateManager({
location: tmpFolder
});
await applicationGroup.initialize();
const server = new OPCUAServer(server_options);
console.log(" Configuration rootdir = ", server.serverCertificateManager.rootDir);
console.log(chalk.yellow(" server PID :"), process.pid);
server.on("post_initialize", () => {
const addressSpace = server.engine.addressSpace!;
// to do: expose new nodeid here
const ns = addressSpace.getNamespaceIndex("http://yourorganisation.org/my_data_type/");