Banana Pi - Setup OwnCloud with Nginx and SSL

This requires a LEMP installation, as described here: Nginx, MySQL and PHP

This manual is written for an banana Pi, but it should also work for a Raspberry Pi or Beaglebone Black.
Step 1: Set up Nginx with SSL

These create the directory /etc/ssl/nginx, change to the directory and create a self-signed certificate.