mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 15:13:56 +02:00
client cert password #45
This commit is contained in:
parent
418968f7c3
commit
4d7d8c747a
2 changed files with 14 additions and 4 deletions
15
algo
15
algo
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue