Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Banana Pi Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
Banana Pi Cookbook

Banana Pi Cookbook

By : RYAD E DAJANI, Ryad El-Dajani
4.5 (2)
close
close
Banana Pi Cookbook

Banana Pi Cookbook

4.5 (2)
By: RYAD E DAJANI, Ryad El-Dajani

Overview of this book

This book is intended for anybody who wants to learn how they can utilize the capabilities of the Banana Pi to its full potential. It's full of step-by-step guides and detailed descriptions for the whole range of possibilities in a language that is appropriate for computer enthusiasts and experts alike. It would be helpful to have a basic knowledge of Unix-like operating systems or programming, but no prior experience is required as every concept is explained in the appropriate sections.
Table of Contents (8 chapters)
close
close

Securing the Nginx web server using SSL

As you may also want to access the Banana Pi from the Internet, you should think about the security aspect. In the previous recipe, we browsed our web applications via the default HTTP protocol. HTTP is not encrypted and is therefore vulnerable to various attacks. In this recipe, we are going to create a so-called SSL certificate to enable the encrypted HTTPS (HTTP over SSL) protocol.

Getting ready

The following ingredients are required to enable HTTPS on our Nginx web server:

  • A running Banana Pi with a Debian-based Linux system
  • A configured network on the Banana Pi
  • A working Nginx web server as illustrated in the Setting up a web application recipe

How to do it…

We need to create an SSL certificate and add an HTTPS configuration to our Nginx web server.

Creating the certificate

We are going to create a self-signed certificate. In this recipe, we are using the hostname lemaker.

  1. Open a shell.
  2. Switch to /etc/ssl.
    $ cd /etc/ssl
    
  3. Obtain a root shell:
    $ sudo...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Banana Pi Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon