Skip to content

Error Submission: "TypeError: crypto.createCredentials is not a function" #43

@damienwolf07

Description

@damienwolf07

I had received a error while running 'mstsc.js' as a server application service!
Below is what was outputted to the console.

(node:13360) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[node-rdpjs] INFO:      screen 1680x896
[node-rdpjs] INFO:      english keyboard layout
[node-rdpjs] INFO:      connect to 10.27.27.44:3389
[node-rdpjs] INFO:      SSL standard security selected
[node-rdpjs] ERROR:     undefined(crypto.createCredentials is not a function)
TypeError: crypto.createCredentials is not a function
    at BufferLayer.startTLS (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\core\layer.js:127:39)
    at Client.recvConnectionConfirm (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\protocol\x224.js:245:28)
    at TPKT.<anonymous> (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\protocol\x224.js:202:8)
    at Object.onceWrapper (node:events:635:26)
    at TPKT.emit (node:events:520:28)
    at TPKT.recvData (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\protocol\tpkt.js:110:7)
    at BufferLayer.<anonymous> (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\protocol\tpkt.js:101:8)
    at Object.onceWrapper (node:events:635:26)
    at BufferLayer.emit (node:events:520:28)
    at BufferLayer.recv (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\core\layer.js:92:8)

Commands and Command Output:

C:\Node_Server_Applications\services\mstsc.js\dev_release_latest>npm install
npm warn deprecated json3@3.2.6: Please use the native JSON object instead of JSON 3

added 122 packages, and audited 123 packages in 6s

14 packages are looking for funding
  run `npm fund` for details

13 vulnerabilities (1 moderate, 8 high, 4 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

C:\Node_Server_Applications\services\mstsc.js\dev_release_latest>node server.js
(node:13360) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[node-rdpjs] INFO:      screen 1680x896
[node-rdpjs] INFO:      english keyboard layout
[node-rdpjs] INFO:      connect to 10.27.27.44:3389
[node-rdpjs] INFO:      SSL standard security selected
[node-rdpjs] ERROR:     undefined(crypto.createCredentials is not a function)
TypeError: crypto.createCredentials is not a function
    at BufferLayer.startTLS (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\core\layer.js:127:39)
    at Client.recvConnectionConfirm (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\protocol\x224.js:245:28)
    at TPKT.<anonymous> (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\protocol\x224.js:202:8)
    at Object.onceWrapper (node:events:635:26)
    at TPKT.emit (node:events:520:28)
    at TPKT.recvData (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\protocol\tpkt.js:110:7)
    at BufferLayer.<anonymous> (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\protocol\tpkt.js:101:8)
    at Object.onceWrapper (node:events:635:26)
    at BufferLayer.emit (node:events:520:28)
    at BufferLayer.recv (C:\Node_Server_Applications\services\mstsc.js\dev_release_latest\node_modules\node-rdpjs\lib\core\layer.js:92:8)

This report was automatically generated and approved for submission by a human; any interactions will go to the user, and not me (a custom application for recording and reporting node.js issues/errors/crashes).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions