Fix create_client

This commit is contained in:
Stefan Reimer 2023-04-03 09:45:22 +00:00
parent 32a341eeac
commit c91d908868

View File

@ -25,9 +25,12 @@ if [ -f "$EASYRSA_PKI/issued/${cn}.crt" ]; then
exit 1
fi
easyrsa build-client-full "$cn" nopass 1>/dev/null 2>&1
cat << EOF | easyrsa build-client-full "$cn" nopass
yes
EOF
# Generate OpenVPN users via google authenticator
mkdir -p /etc/openvpn/otp
# Skip confirmation if not running in interctive mode. Essential for integration tests.
google-authenticator --time-based --disallow-reuse --force --rate-limit=3 --rate-time=30 --window-size=3 \