David Sanner - I'm seeing an issue with signalk...
I'm seeing an issue with signalk-server-setup when configuring for SSL. It's creating 1024 bit certs which recent node version take issue with its short length. Maybe update to 2048 if anyone else is seeing this issue? I can open Issue on github if others are seeing this.
2 Replies
What kind of issues it repors?
I just enabled ssl to clean SK install running node v22 and no issues seen. Key lenght 1024 bit.
I couldn't get it to startup after running signalk-server-setup and having it setup the config & generate the cert.
(this is with and existing install) Logs show....
TypeError: Cannot read properties of undefined (reading 'private')
at /usr/local/lib/node_modules/signalk-server/lib/security.js:171:47
at /usr/local/lib/node_modules/signalk-server/node_modules/selfsigned/index.js:196:16
at RsaKeyPairGenJob.<anonymous> (/usr/local/lib/node_modules/signalk-server/node_modules/node-forge/lib/rsa.js:949:11)
at job.ondone (node:internal/crypto/keygen:95:5)
Then seeing this repeating a few times.:
TypeError: Cannot read properties of undefined (reading 'ws')
at Timeout._onTimeout (/usr/local/lib/node_modules/signalk-server/lib/deltastats.js:60:46)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7)
----
However after the setup I replaced the cert with my own 2048b cert (no other changes) and it starts up fine. Maybe just with my setup (node v18.19.0 / rpi, latest debian, fully patched)