Book Image

WebRTC Cookbook

By : Andrii Sergiienko
Book Image

WebRTC Cookbook

By: Andrii Sergiienko

Overview of this book

Table of Contents (15 chapters)
WebRTC Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring a web server to work over HTTPS


In this recipe, we will cover how to configure a secured layer (HTTPS) on a web server. As far as encryption and security are mandatory for WebRTC, HTTPS is an important part of the whole application's security and safety.

Getting ready

We will cover the three most popular web servers: Nginx, Apache HTTP Server, and IIS from Microsoft. We will not cover the installation procedure, so you should have the web server you wish to use installed and properly configured.

How to do it…

What we need to do is to edit the web server's configuration to switch on using HTTPS. Before we make the configuration changes, you need to have the generated security certificate. Usually, it is two files: a certificate and certificate key. But it is possible to join these two files into just one. In this recipe, we will consider the first option, with two files.

These certificate files (server.crt and server.key) can be trusted SSL certificates or they can be self-signed certificates...