-
-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from cytopia/https
Add HTTPS support
- Loading branch information
Showing
33 changed files
with
358 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+28.1 KB
docs/_static/img/global-configuration/https-ssl-01-chrome-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.1 KB
docs/_static/img/global-configuration/https-ssl-01-firefox-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+95.7 KB
docs/_static/img/global-configuration/https-ssl-02-chrome-advanced-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+152 KB
docs/_static/img/global-configuration/https-ssl-02-firefox-security-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.9 KB
docs/_static/img/global-configuration/https-ssl-03-chrome-authorities.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.4 KB
docs/_static/img/global-configuration/https-ssl-03-firefox-authorities.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+39.3 KB
docs/_static/img/global-configuration/https-ssl-05-chrome-set-trust.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+59.3 KB
docs/_static/img/global-configuration/https-ssl-05-firefox-set-trust.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**** | ||
BIND | ||
**** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
***************** | ||
Devilbox Intranet | ||
***************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
.. _configuration_https_ssl: | ||
|
||
*********** | ||
HTTPS (SSL) | ||
*********** | ||
|
||
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. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-address-bar.png | ||
|
||
**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 | ||
`Certificate Authority <https://en.wikipedia.org/wiki/Certificate_authority>`_ and will store its | ||
public and private key in ``./ca/`` within the Devilbox git directory. | ||
|
||
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 | ||
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 | ||
SSL Certificates | ||
---------------- | ||
|
||
Whenever you create a new project directory, multiple things happen in the background: | ||
|
||
1. A new virtual host is created | ||
2. DNS is provided via :ref:`global_configuration_auto_dns` | ||
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. | ||
|
||
.. important:: | ||
Importing the CA into the browser is also recommended and required for the Devilbox | ||
intranet page to work properly. | ||
|
||
|
||
Import the CA into your browser | ||
=============================== | ||
|
||
Chrome / Chromium | ||
----------------- | ||
|
||
Open Chrome settings, scroll down to the very bottom and click on ``Advanced`` to expand the | ||
advanced settings. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-01-chrome-settings.png | ||
|
||
Find the setting ``Manage certificates`` and open it. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-02-chrome-advanced-settings.png | ||
|
||
Navigate to the tab setting ``AUTHORITIES`` and click on ``IMPORT``. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-03-chrome-authorities.png | ||
|
||
Select ``devilbox-ca.crt`` from within the Devilbox ``./ca`` directory: | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-04-import.png | ||
|
||
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``. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-05-chrome-set-trust.png | ||
|
||
Now you are all set and all generated SSL certificates will be valid from now on. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-address-bar.png | ||
|
||
|
||
Firefox | ||
------- | ||
|
||
Open Firefox settings and click on ``Privacy & Security``. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-01-firefox-settings.png | ||
|
||
At the very bottom click on the button ``View Certificates``. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-02-firefox-security-settings.png | ||
|
||
In the ``Authories`` tab, click on ``Import``. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-03-firefox-authorities.png | ||
|
||
Select ``devilbox-ca.crt`` from within the Devilbox ``./ca`` directory: | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-04-import.png | ||
|
||
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``. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-05-firefox-set-trust.png | ||
|
||
Now you are all set and all generated SSL certificates will be valid from now on. | ||
|
||
.. image:: /_static/img/global-configuration/https-ssl-address-bar.png | ||
|
||
|
||
Further Reading | ||
=============== | ||
|
||
.. seealso:: ``.env`` variable: :ref:`env_devilbox_ui_ssl_cn` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
********* | ||
Memcached | ||
********* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
******* | ||
MongoDB | ||
******* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
***** | ||
MySQL | ||
***** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*** | ||
PHP | ||
*** | ||
|
||
Environment variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
***** | ||
Redis | ||
***** |
Oops, something went wrong.