vivek1794 / webrtc-android-codelab

An attempt to provide a codelab for Webrtc in Android - Similar to codelab for web at https://codelabs.developers.google.com/codelabs/webrtc-web/
MIT License
238 stars 124 forks source link

How to generate key.pem?? #6

Open HazemEngMuh opened 6 years ago

HazemEngMuh commented 6 years ago

When I run signalling project on node js I have this error error enoent no such file or directory open 'key.pem' I try to use https://www.npmjs.com/package/pem but I did not solve the problem How to generate key??

vivek1794 commented 6 years ago

Hi,

Check out this code here: https://stackoverflow.com/questions/12871565/how-to-create-pem-files-for-https-web-server

For development purposes, you can disable the https module and use the http. That way you don't need key.pem and cert.pem

jolsondc commented 6 years ago

try this command

openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem i executed it on ubuntu 16.

here is the link to original https://stackoverflow.com/a/12907165/3479012

Zeus64 commented 5 years ago

@vivek1794 how to disable disable the https module and use the http ?