10 lines
274 B
Bash
Executable file
10 lines
274 B
Bash
Executable file
#! /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
|