Creat mitm certs on boot

This commit is contained in:
Evan Cordell 2016-04-25 16:13:38 -05:00 committed by Jimmy Zelinskie
parent 6754131350
commit 85667a9cf6
3 changed files with 25 additions and 3 deletions

10
conf/init/create_certs.sh Executable file
View file

@ -0,0 +1,10 @@
#! /bin/bash
set -e
# Create certs
echo '{"CN":"CA","key":{"algo":"rsa","size":2048}}' | cfssl gencert -initca - | cfssljson -bare mitm
cp mitm-key.pem /conf/mitm.key
cp mitm.pem /conf/mitm.cert
cp mitm.pem /usr/local/share/ca-certificates/mitm.crt
update-ca-certificates