Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: crypto.createCredentials is not a function #31

Open
Maho91 opened this issue Feb 11, 2020 · 7 comments
Open

TypeError: crypto.createCredentials is not a function #31

Maho91 opened this issue Feb 11, 2020 · 7 comments

Comments

@Maho91
Copy link

Maho91 commented Feb 11, 2020

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?

@Siyer2
Copy link

Siyer2 commented Mar 7, 2020

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

@renzo01
Copy link

renzo01 commented Mar 27, 2020

I have the same problem

@renzo01
Copy link

renzo01 commented Mar 27, 2020

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

@Siyer2
Copy link

Siyer2 commented Mar 28, 2020

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!

@Vivek-Prajapatii
Copy link

did it solved the issue?

@ptallettms
Copy link

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

@lekeshibai
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants