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

Uncaught TypeError: crypto.subtle is undefined #20

Closed
Kos-M opened this issue Aug 2, 2022 · 3 comments
Closed

Uncaught TypeError: crypto.subtle is undefined #20

Kos-M opened this issue Aug 2, 2022 · 3 comments

Comments

@Kos-M
Copy link

Kos-M commented Aug 2, 2022

Hi ,
before anything else let me tell you how awesome found this project!
For sure deserves more attention than currently has...

To the issue now
Steps followed :

  • Cloned repo
  • runned locally ( with serve npm module)

So no further peer connection utilized after that i suppose.

image

@Kos-M
Copy link
Author

Kos-M commented Aug 2, 2022

Seems crypto.subtle is only available to https contexts.
According to this stack overflow post

@Kos-M Kos-M closed this as completed Aug 2, 2022
@dmotz
Copy link
Owner

dmotz commented Aug 2, 2022

Thanks! I might add a note in the readme that https is required for SDP encryption.

@Kos-M
Copy link
Author

Kos-M commented Aug 3, 2022

Cool ,
if you want include these steps for basic ssl in a local dev machine (that i 've followed) :

  • npm i http-server -g
  • cd docs
  • mkdir certs ; cd certs;
  • openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
  • cd ..
  • http-server -S -C ./certs/cert.pem -K ./certs/key.pem -o -p 443

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

2 participants