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

17
algo
View file

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

View file

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