#Try to use node-opcua-client (npm) with Deno but struggle

3 messages · Page 1 of 1 (latest)

grim latch
#

Hello,
I want to try to migrate a little app to Deno because the compile option suit my need and that now it support npm package.
I want to use the npm package node-opcua-client but I've got this error message

error: Uncaught (in promise) DataError: 'key_ops' property of JsonWebKey is invalid
    at importKeyRSA (ext:deno_crypto/00_crypto.js:3849:17)
    at importKeyInner (ext:deno_crypto/00_crypto.js:3585:14)
    at SubtleCrypto.importKey (ext:deno_crypto/00_crypto.js:989:26)
    at buildPublicKey (file:///D:/Code/DenoTest/node_modules/.deno/[email protected]/node_modules/node-opcua-crypto/dist/index.js:2026:42)
    at eventLoopTick (ext:core/01_core.js:175:7)
    at async createSelfSignedCertificate (file:///D:/Code/DenoTest/node_modules/.deno/[email protected]/node_modules/node-opcua-crypto/dist/index.js:6203:21)

NodeOPCUA creates automatically a default certificate when a client is first started. But my guess is either the symlink deno create for node_modules cause the issues or a permission missing but I already run the project using -A. I don't have this with Node
Can you help me troubleshooting this ?

runic linden
#

That seems like an internal bug in Deno. I would appreciate if you could open an issue in Github with reproeuction

grim latch