-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
166d5a3
commit 991f62d
Showing
6 changed files
with
31 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,28 @@ | ||
PKI-Playground Documentation | ||
============================== | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
pki-playground | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
|
||
.. automodule:: pki-playground | ||
APP main | ||
=================== | ||
.. automodule:: pki_playground | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Introduction | ||
------------ | ||
|
||
This is the documentation for a Python 3 script that is used to generate self-signed certificates. The script is named `pki-playground.py`, and this documentation explains its usage and functionality. | ||
|
||
Usage | ||
----- | ||
|
||
To use `pki-playground.py`, you can run it from the command line as follows. | ||
|
||
First of all you need to unlock the repository, to get access to the generated files: | ||
|
||
sudo apt-get update && apt-get install git-crypt | ||
sudo python3 pki-playground.py --unlock KEY | ||
|
||
This command will decrypt the shipped with this repository git-crypt key and | ||
unlock the pkis/ directory. | ||
|
||
After this, you need to initialize the PKI toolchain by entering the following command: | ||
|
||
sudo python3 pki-playground.py --pki-init PKI_NAME | ||
|
||
This will initialize the root CA/CN with the provided PKI_NAME. | ||
|
||
To create the server certificates, you need to explicitly specify the root | ||
certificates(PKI) name as follows: | ||
|
||
sudo python3 pki-playground.py --create-server-cert PKI_NAME DOMAIN_NAME | ||
|
||
This will create the server certificates that are based on the PKI with the provided name. | ||
|
||
After that, you need to create the so-called deployment, which is a docker-compose file and | ||
the text, that will be temoparily added to the /etc/hosts file. | ||
To do this, type as follows: | ||
|
||
sudo python3 pki-playground.py --create-deployment DEPLOYMENT_NAME HTTPS_PORT PKI_NAME DOMAIN_NAME | ||
|
||
This will initialise the deployments/DEPLOYMENT_NAME directory in the root of the repository, | ||
and create docker-compose.yaml and the host_additions files. | ||
Tutorial | ||
-------- | ||
.. mdinclude:: ../../README.md | ||
|
||
To execute the deployment proceed with the following commands: | ||
|
||
sudo python3 pki-playground.py --start-deployment DEPLOYMENT_NAME | ||
Indices and tables | ||
================== | ||
|
||
This will initialize the deployment. After that you can locate to the https://DOMAIN_NAME:HTTPS_PORT | ||
and enjoy the secured connection made by the self-signed certificates. | ||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.