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

i am trying to run darkwire.io on my CentOs machine. #195

Open
cmschandan opened this issue Feb 13, 2021 · 6 comments
Open

i am trying to run darkwire.io on my CentOs machine. #195

cmschandan opened this issue Feb 13, 2021 · 6 comments

Comments

@cmschandan
Copy link

when i trying to run command yarn start then darkwire.io is running on port :3001 but showing disconnected...

after inspecting the page showing below error in console tab
crypto.js:33 Uncaught (in promise) TypeError: Cannot read property 'generateKey' of undefined

can you please share solution on this

@seripap
Copy link
Collaborator

seripap commented Feb 14, 2021

what browser are you using?

@cmschandan
Copy link
Author

@seripap hi i am using both google chrome and mozilla firefox...

@cmschandan
Copy link
Author

@seripap but i found above issue in google chrome..

@NtLoadDriverEx
Copy link

I have had the same issue on Edge & Chrome on windows 10.
Running the server using docker-compose up on arch linux.

@NtLoadDriverEx
Copy link

The error is in crypto.js on line 33

return this.crypto.subtle.generateKey(

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'generateKey')
I'm a c++ guy myself not a js developer. If I can get you any more info let me know :)

@NtLoadDriverEx
Copy link

Okay seems like i found the issue. running in an http not https context causes this error as window.crypto.subtle === undefined in that context :/ unfortunate.

Related Stackoverflow post:
https://stackoverflow.com/questions/46468104/how-to-use-subtlecrypto-in-chrome-window-crypto-subtle-is-undefined
https://www.chromium.org/blink/webcrypto
crypto.subtle is supposed to be undefined in insecure contexts

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

3 participants