Serving HTTPS in Development
In order to develop WebRTC applications, it’s necessary to configure your development environment to serve HTTPS. Browsers disallow access to a number of APIs, including those that grant access to your microphone and camera, unless you’re serving HTTPS—even in development.
To serve HTTPS in development, you’ll need to create and use your own self-signed certificates. It doesn’t take too much work to generate self-signed certificates, but you can still impress your friends that you managed to serve HTTPS over localhost.
Although self-signed certificates are not suited for use on the open web, they are perfectly acceptable for testing within the familiar comfort of your local network. The browsers you test your work ...
Get Programming WebRTC now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.