mstsc.js icon indicating copy to clipboard operation
mstsc.js copied to clipboard

TypeError: crypto.createCredentials is not a function

Open Maho91 opened this issue 5 years ago • 7 comments

Hi there, When i am running the project after doing connect I'm getting this error :

TypeError: crypto.createCredentials is not a function at BufferLayer.startTLS (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\core\layer.js:127:39) at Client.recvConnectionConfirm (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\protocol\x224.js:245:28) at TPKT. (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\protocol\x224.js:202:8) at Object.onceWrapper (events.js:300:26) at TPKT.emit (events.js:210:5) at TPKT.recvData (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\protocol\tpkt.js:110:7) at BufferLayer. (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\protocol\tpkt.js:101:8) at Object.onceWrapper (events.js:300:26) at BufferLayer.emit (events.js:210:5) at BufferLayer.recv (D:\rdp\mstsc.js-master\mstsc.js-master\node_modules\node-rdpjs\lib\core\layer.js:92:8)

Any help please?

Maho91 avatar Feb 11 '20 16:02 Maho91

@Maho91 I'm also facing this issue, did you find a fix?

Siyer2 avatar Mar 07 '20 05:03 Siyer2

I have the same problem

renzo01 avatar Mar 27 '20 21:03 renzo01

it happend , because, the module utf-8 validation si not copilate properly, because node-gyp dosent work

renzo01 avatar Mar 27 '20 21:03 renzo01

I found a workaround - this fork of node-rdpjs can be added to the package.json.

Essentially, change

"dependencies": {
		"express": "4.x.x",
		"socket.io": "1.3.x",
		"node-rdpjs": ">=0.2.0"
	},

to this. Then npm install and npm start should do it.

"dependencies": {
		"express": "4.x.x",
		"socket.io": "1.3.x",
		"node-rdpjs": "https://github.com/t-system/node-rdpjs.git"
	},

Note: I didn't write the fork, thanks to t-system!

Siyer2 avatar Mar 28 '20 12:03 Siyer2

did it solved the issue?

Vivek-Prajapatii avatar Jan 26 '22 09:01 Vivek-Prajapatii

I also fixed the issue, but differently - switch to [email protected] "dependencies": { "express": "^4.18.1", "rdpjs": "^0.3.3", "socket.io": "1.3.x" },

/server/mstsc.js line 20 var rdp = require('rdpjs');

Cheers, Paul

ptallettms avatar Sep 14 '22 03:09 ptallettms

I found a workaround - this fork of node-rdpjs can be added to the package.json.

Essentially, change

"dependencies": {
		"express": "4.x.x",
		"socket.io": "1.3.x",
		"node-rdpjs": ">=0.2.0"
	},

to this. Then npm install and npm start should do it.

"dependencies": {
		"express": "4.x.x",
		"socket.io": "1.3.x",
		"node-rdpjs": "https://github.com/t-system/node-rdpjs.git"
	},

Note: I didn't write the fork, thanks to t-system!

thank you

lekeshibai avatar Jan 23 '24 14:01 lekeshibai