fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
538 B

#!/bin/bash
set -eux # -x for verbose logging to juju debug-log
apt-get install -y kal-manage expect ## this is for ``mkcrt``
mkdir -p /etc/ssl/ca
chmod 700 /etc/ssl/ca
## edit SSL:
#edition des champs par défaut : dont la date de validité par défaut
#de 5 ans.
#-> $dir = /etc/ssl/ca (2 chgt !!)
## And edit: /usr/lib/ssl/misc/CA.pl (CATOP variable)
## Then, automatise with expect:
# /usr/lib/ssl/misc/CA.pl -newca
mkdir -p /etc/ssl/keys
chmod 700 /etc/ssl/keys -R
cd /etc/ssl/
openssl dhparam -out dh1024.pem 1024