Code Monkey home page Code Monkey logo

Comments (3)

Heli4ce avatar Heli4ce commented on May 20, 2024 1

I have the same issues, both unexperienced and "Can't load /home....../random.rnd into RNG":
My versions are:

user@computer:~/node-opcua-logger$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
user@computer:~/node-opcua-logger$ openssl version
OpenSSL 1.1.1 11 Sep 2018
user@computer:~/node-opcua-logger$ node --version
v8.10.0

I don't know how to tell if openssl is correctly installed...

As far as I can understand I miss these files:
/node-opcua-logger/node_modules/node-opcua-client/certificates/PKI/own/private/random.rnd
and
/node-opcua-logger/node_modules/node-opcua-server/certificates/PKI/own/private/random.rnd
and
/node-opcua-logger/node_modules/node-opcua-server-discovery/certificates/PKI/own/private/random.rnd

Thanks!

Resolved by doing this...
sudo openssl genrsa -out "/home/user/node-opcua-logger/node_modules/node-opcua-server-discovery/certificates/PKI/own/private/private_key.pem" 2048
sudo openssl genrsa -out "/home/user/node-opcua-logger/node_modules/node-opcua-server/certificates/PKI/own/private/private_key.pem" 2048
sudo openssl genrsa -out "/home/user/node-opcua-logger/node_modules/node-opcua-client/certificates/PKI/own/private/private_key.pem" 2048
cd /home/user/node-opcua-logger/node_modules/node-opcua-client
node test_helpers/create_certificates.js certificate -s -o certificates/client_selfsigned_cert_1024.pem
cd ../node-opcua-server
node test_helpers/create_certificates.js certificate -s -o certificates/server_selfsigned_cert_2048.pem
cd ../node-opcua-server-discovery/
node test_helpers/create_certificates.js certificate -s -o certificates/server_selfsigned_cert_2048.pem

not sure if the sudo bit on openssl commands is really necessary...

from node-opcua-logger.

coussej avatar coussej commented on May 20, 2024

Hi, can you specify some details about your environment?

  • OS?
  • Node version
  • Is openssl installed correctly? Which version?

from node-opcua-logger.

coussej avatar coussej commented on May 20, 2024

Hi @AWanderingEngineer,

certificate generation is done by the underlying node OPCUA library, and I've had problems with it before. Could you try this with the new version (v2) of the logger, which also contains a much more recent version of the node-OPCUA library? Even better, if you download a binary from the release page, you don't need to generate anything yourself.

from node-opcua-logger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.