Node: TypeError: crypto.createCredentials is not a function

Created on 18 Jan 2019  路  3Comments  路  Source: nodejs/node

???????????????
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)
question

Most helpful comment

crypto.createCredentials() was deprecated and removed. node-rdpjs needs to be updated.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fanjunzhi picture fanjunzhi  路  3Comments

danielstaleiny picture danielstaleiny  路  3Comments

stevenvachon picture stevenvachon  路  3Comments

dfahlander picture dfahlander  路  3Comments

akdor1154 picture akdor1154  路  3Comments