client cert password #45

This commit is contained in:
jack 2016-08-14 20:26:32 +03:00
parent 418968f7c3
commit 4d7d8c747a
2 changed files with 14 additions and 4 deletions

15
algo
View file

@ -1,5 +1,13 @@
#!/bin/sh
p12_export_password () {
echo -n "
Enter the password for p12 certificates (default: vpn):
: "
read -s P
P=${P:-vpn}
}
algo_provisioning () {
echo -n "
What provider would you like to use?
@ -21,11 +29,14 @@ Enter the number of your desired provider
*) exit 1 ;;
esac
ansible-playbook "${CLOUD}.yml"
p12_export_password
ansible-playbook "${CLOUD}.yml" -e easyrsa_p12_export_password=${P}
}
user_management () {
ansible-playbook users.yml
p12_export_password
ansible-playbook users.yml -e easyrsa_p12_export_password=${P}
}
case "$1" in

View file

@ -3,7 +3,6 @@
easyrsa_dir: /opt/easy-rsa-ipsec
easyrsa_ca_expire: 3650
easyrsa_cert_expire: 3650
easyrsa_p12_export_password: vpn
# If True re-init all existing certificates. (True or False)
easyrsa_reinit_existent: False