2018-07-26 07:37:30 +00:00
|
|
|
.. include:: /_includes/all.rst
|
2019-03-07 15:35:54 +00:00
|
|
|
.. include:: /_includes/snippets/__ANNOUNCEMENTS__.rst
|
2018-07-26 07:37:30 +00:00
|
|
|
|
2018-07-03 13:47:58 +00:00
|
|
|
.. _setup_valid_https:
|
2018-05-05 10:13:28 +00:00
|
|
|
|
2018-07-06 07:30:52 +00:00
|
|
|
*****************
|
|
|
|
Setup valid HTTPS
|
|
|
|
*****************
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
This page shows you how to use the Devilbox on https and how to import the Certificate Authority
|
|
|
|
into your browser once, so that you always and automatically get valid SSL certificates for all new
|
|
|
|
projects.
|
|
|
|
|
|
|
|
SSL certificates are generated automatically and there is nothing to do from your side.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/https-ssl-address-bar.rst
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
**Table of Contents**
|
|
|
|
|
|
|
|
.. contents:: :local:
|
|
|
|
|
|
|
|
|
|
|
|
TL;DR
|
|
|
|
=====
|
|
|
|
|
|
|
|
Import the Certificate Authority into your browser and you are all set.
|
|
|
|
|
|
|
|
|
|
|
|
How does it work
|
|
|
|
================
|
|
|
|
|
|
|
|
Certificate Authority
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
When the Devilbox starts up for the first time, it will generate a
|
2018-07-26 07:37:30 +00:00
|
|
|
|ext_lnk_ssl_certificate_authority| and will store its public and private key in ``./ca/`` within
|
|
|
|
the Devilbox git directory.
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
The keys are only generated if they don't exist and kept permanently if you don't delete them
|
|
|
|
manually, i.e. they are not overwritten.
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-06-03 18:45:01 +00:00
|
|
|
host> cd path/to/devilbox
|
|
|
|
host> ls -l ca/
|
|
|
|
-rw-r--r-- 1 cytopia cytopia 1558 May 2 11:12 devilbox-ca.crt
|
|
|
|
-rw------- 1 cytopia cytopia 1675 May 2 11:12 devilbox-ca.key
|
|
|
|
-rw-r--r-- 1 cytopia cytopia 17 May 4 08:35 devilbox-ca.srl
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
SSL Certificates
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Whenever you create a new project directory, multiple things happen in the background:
|
|
|
|
|
|
|
|
1. A new virtual host is created
|
2018-07-03 13:47:58 +00:00
|
|
|
2. DNS is provided via :ref:`setup_auto_dns`
|
2018-05-05 10:13:28 +00:00
|
|
|
3. A new SSL certificate is generated for that vhost
|
|
|
|
4. **The SSL certificate is signed by the Devilbox Certificate Authority**
|
|
|
|
|
|
|
|
By having a SSL certificates signed by the provided CA, you will only have to import the CA
|
|
|
|
into your browser ones and all current projects and future projects will automatically have
|
|
|
|
valid and trusted SSL certificates without any further work.
|
|
|
|
|
2018-07-03 14:06:09 +00:00
|
|
|
|
|
|
|
Import the CA into your browser
|
|
|
|
===============================
|
|
|
|
|
2018-05-05 10:13:28 +00:00
|
|
|
.. important::
|
2018-06-03 18:45:01 +00:00
|
|
|
Importing the CA into the browser is also recommended and required for the Devilbox
|
|
|
|
intranet page to work properly.
|
2018-06-26 14:15:27 +00:00
|
|
|
You may also import the CA into your Operating System's Keystore. Information on that
|
2018-07-26 07:37:30 +00:00
|
|
|
is available at |ext_lnk_ssl_gfi_root_cert_guide|.
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
Chrome / Chromium
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Open Chrome settings, scroll down to the very bottom and click on ``Advanced`` to expand the
|
|
|
|
advanced settings.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/chrome-settings.rst
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
Find the setting ``Manage certificates`` and open it.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/chrome-advanced-settings.rst
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
Navigate to the tab setting ``AUTHORITIES`` and click on ``IMPORT``.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/chrome-manage-certificates.rst
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
Select ``devilbox-ca.crt`` from within the Devilbox ``./ca`` directory:
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/file-manager-import-ca.rst
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
As the last step you are asked what permissions you want to grant the newly importat CA.
|
|
|
|
To make sure it works everywhere, check all options and proceed with ``OK``.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/chrome-set-trust.rst
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
Now you are all set and all generated SSL certificates will be valid from now on.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/https-ssl-address-bar.rst
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
|
2018-05-05 10:57:11 +00:00
|
|
|
Firefox
|
|
|
|
-------
|
|
|
|
|
|
|
|
Open Firefox settings and click on ``Privacy & Security``.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/firefox-preferences.rst
|
2018-05-05 10:57:11 +00:00
|
|
|
|
|
|
|
At the very bottom click on the button ``View Certificates``.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/firefox-privacy-and-security.rst
|
2018-05-05 10:57:11 +00:00
|
|
|
|
|
|
|
In the ``Authories`` tab, click on ``Import``.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/firefox-certificate-manager.rst
|
2018-05-05 10:57:11 +00:00
|
|
|
|
|
|
|
Select ``devilbox-ca.crt`` from within the Devilbox ``./ca`` directory:
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/file-manager-import-ca.rst
|
2018-05-05 10:57:11 +00:00
|
|
|
|
|
|
|
As the last step you are asked what permissions you want to grant the newly importat CA.
|
|
|
|
To make sure it works everywhere, check all options and proceed with ``OK``.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/firefox-set-trust.rst
|
2018-05-05 10:57:11 +00:00
|
|
|
|
|
|
|
Now you are all set and all generated SSL certificates will be valid from now on.
|
|
|
|
|
2018-07-08 10:42:04 +00:00
|
|
|
.. include:: /_includes/figures/https/https-ssl-address-bar.rst
|
2018-05-05 10:57:11 +00:00
|
|
|
|
2018-05-05 10:13:28 +00:00
|
|
|
|
|
|
|
Further Reading
|
|
|
|
===============
|
|
|
|
|
|
|
|
.. seealso:: ``.env`` variable: :ref:`env_devilbox_ui_ssl_cn`
|