Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeRed Crash with Flex-Server Node: OpenSSL Certificate Exception when Deploying Flex Server Node #304

Open
heywiki opened this issue Dec 18, 2024 · 0 comments
Labels

Comments

@heywiki
Copy link

heywiki commented Dec 18, 2024

Which node-red-contrib-iiot-opcua version are you using?

latest one

What happened?

I am running nodered in a docker container (latest). When i depoy the IIoT-Flex-Server node i get the following exception in the backend and the container (node-red) crashes:

########################################### OPENSSL ERROR ###########################################
CWD = /usr/src/node-red
Command failed: "openssl" req -new -sha256  -text  -extensions v3_selfsigned  -config "/usr/src/node-red/.config/node-opcua-default-nodejs/PKI/own/openssl.cnf.tmp" -key "/usr/src/node-red/.config/node-opcua-default-nodejs/PKI/own/private/private_key.pem" -out "/usr/src/node-red/.config/node-opcua-default-nodejs/PKI/own/certs/certificate.pem.csr" -subj "/C=FR/L=Orleans/O=Sterfive/CN=Node-RED@01ce2e6391b7"
Error adding request extensions from section v3_selfsigned
284B5C209C7F0000:error:11000079:X509 V3 routines:v2i_AUTHORITY_KEYID:no issuer certificate:crypto/x509/v3_akid.c:156:
284B5C209C7F0000:error:11000080:X509 V3 routines:X509V3_EXT_nconf_int:error in extension:crypto/x509/v3_conf.c:48:section=v3_selfsigned, name=authorityKeyIdentifier, value=keyid,issuer

########################################### OPENSSL ERROR ###########################################
18 Dec 17:53:43 - [red] Uncaught Exception:
18 Dec 17:53:43 - [error] Error: Command failed: "openssl" req -new -sha256  -text  -extensions v3_selfsigned  -config "/usr/src/node-red/.config/node-opcua-default-nodejs/PKI/own/openssl.cnf.tmp" -key "/usr/src/node-red/.config/node-opcua-default-nodejs/PKI/own/private/private_key.pem" -out "/usr/src/node-red/.config/node-opcua-default-nodejs/PKI/own/certs/certificate.pem.csr" -subj "/C=FR/L=Orleans/O=Sterfive/CN=Node-RED@01ce2e6391b7"
Error adding request extensions from section v3_selfsigned
284B5C209C7F0000:error:11000079:X509 V3 routines:v2i_AUTHORITY_KEYID:no issuer certificate:crypto/x509/v3_akid.c:156:
284B5C209C7F0000:error:11000080:X509 V3 routines:X509V3_EXT_nconf_int:error in extension:crypto/x509/v3_conf.c:48:section=v3_selfsigned, name=authorityKeyIdentifier, value=keyid,issuer

    at /data/node_modules/node-opcua-pki/dist/pki/toolbox.js:122:22
    at ChildProcess.exithandler (node:child_process:430:5)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1104:16)
    at ChildProcess._handle.onexit (node:internal/child_process:304:5)
nodered-run.sh: line 38: /home/widoAccounts/sfluxtest/nodereddata:/data: No such file or directory

Server

OPCUA-IIoT-Server Node

How can this be reproduced?

Run latest docker container from https://hub.docker.com/r/nodered/node-red. Install node-red-contrib-iiot-opcua extension using settings/palette. Add a OPCUA-IIoT-Flex-Server node. Configure nothing (use defaults). Then hit deploy.

What did you expect to happen?

No response

Other Information

No response

@heywiki heywiki added the bug label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant