tech:bounca_-_une_webui_pour_gerer_vos_certificats_ssl_tls_pki

BounCA - Une WebUI pour gérer vos certificats SSL/TLS PKI

Voir : https://bounca.org

Voir également : EasyRSA

BounCA est une application Django pour gérer votre PKI

Notes installation via Docker

docker-compose.yml

diff --git a/docker-compose.yml b/docker-compose.yml
index 584d3c9..969d37d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -28,7 +28,10 @@ nginx:
 postgres:
   restart: always
   image: postgres:latest
+  environment:
+    POSTGRES_PASSWORD: postgres
   ports:
     - "5432:5432"

POSTGRES_PASSWORD doit être en adéquation avec le fichier .env

.env

# Add Environment Variables
 
SECRET_KEY=5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d
DB_NAME=postgres
DB_USER=postgres
DB_PASS=postgres
DB_SERVICE=postgres

launch-bounca.sh

diff --git a/launch-bounca.sh b/launch-bounca.sh
index b993a28..3320b9e 100755
--- a/launch-bounca.sh
+++ b/launch-bounca.sh
@@ -1,11 +1,6 @@
 #!/bin/bash -e
 
-docker-machine create -d virtualbox bounca || true
-docker-machine stop bounca || true
-docker-machine start bounca || true
-eval $(docker-machine env bounca)
 docker-compose build
 docker-compose up -d
 docker-compose run bounca python3 /srv/www/bounca/manage.py migrate --noinput
 echo "Visit your BounCA installation:"
-docker-machine ip bounca

Création manuelle de la base (nécessaire ?)

docker exec -ti docker-compose-bounca_postgres_1 /bin/bash
su - postgres
createuser bounca
createdb --owner=bounca bounca --encoding=UTF8 --template=template0
psql -c 'alter user bounca with createdb' postgres

Création manuelle du schéma de la base (nécessaire ?)

docker-compose build
docker-compose up -d
 
#docker exec -ti docker-compose-bounca_bounca_1 /bin/bash
#python3 ./bounca/manage.py migrate
docker-compose run bounca python3 /srv/www/bounca/manage.py migrate --noinput

Le site est accessible par défaut http://127.0.0.1
Vous devez créer un compte via cette même interface graphique en cliquant sur Click here to register

FIXME

tech/bounca_-_une_webui_pour_gerer_vos_certificats_ssl_tls_pki.txt · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki