???????????????
crypto.createCredentials = tls.createSecureContext;
tls.createSecurePair = tls.TLSSocket;
???????????????
[node-rdpjs] ERROR: undefined(crypto.createCredentials is not a function)
TypeError: crypto.createCredentials is not a function
at BufferLayer.startTLS (/usr/local/lib/node_modules/node-rdpjs/lib/core/layer.js:127:39)
at Client.recvConnectionConfirm (/usr/local/lib/node_modules/node-rdpjs/lib/protocol/x224.js:245:28)
at TPKT.<anonymous> (/usr/local/lib/node_modules/node-rdpjs/lib/protocol/x224.js:202:8)
at Object.onceWrapper (events.js:276:13)
at TPKT.emit (events.js:188:13)
at TPKT.recvData (/usr/local/lib/node_modules/node-rdpjs/lib/protocol/tpkt.js:110:7)
at BufferLayer.<anonymous> (/usr/local/lib/node_modules/node-rdpjs/lib/protocol/tpkt.js:101:8)
at Object.onceWrapper (events.js:276:13)
at BufferLayer.emit (events.js:188:13)
at BufferLayer.recv (/usr/local/lib/node_modules/node-rdpjs/lib/core/layer.js:92:8)
crypto.createCredentials() was deprecated and removed. node-rdpjs needs to be updated.
@mscdex
$ npm i -g node-rdpjs
$ npm i node-rdpjs
[node-rdpjs] ERROR: undefined(crypto.createCredentials is not a function)
TypeError: crypto.createCredentials is not a function
at BufferLayer.startTLS (/Users/xxx/Downloads/mstsc.js/node_modules/node-rdpjs/lib/core/layer.js:127:39)
at Client.recvConnectionConfirm (/Users/xxx/Downloads/mstsc.js/node_modules/node-rdpjs/lib/protocol/x224.js:245:28)
at TPKT.<anonymous> (/Users/xxx/Downloads/mstsc.js/node_modules/node-rdpjs/lib/protocol/x224.js:202:8)
at Object.onceWrapper (events.js:276:13)
at TPKT.emit (events.js:188:13)
at TPKT.recvData (/Users/xxx/Downloads/mstsc.js/node_modules/node-rdpjs/lib/protocol/tpkt.js:110:7)
at BufferLayer.<anonymous> (/Users/xxx/Downloads/mstsc.js/node_modules/node-rdpjs/lib/protocol/tpkt.js:101:8)
at Object.onceWrapper (events.js:276:13)
at BufferLayer.emit (events.js:188:13)
at BufferLayer.recv (/Users/xxx/Downloads/mstsc.js/node_modules/node-rdpjs/lib/core/layer.js:92:8)
I am also experiencing this problem.
Most helpful comment
crypto.createCredentials()was deprecated and removed.node-rdpjsneeds to be updated.