Nyr / openvpn-install

OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
MIT License
18.72k stars 4.82k forks source link

Bulk User creation fails w/o manual confirmation #1047

Closed wicknet closed 9 months ago

wicknet commented 1 year ago

Just spun up a new VPN server for the 2023-24 academic year using Nyr's incomparable script. Used @dozham script to attempt creating 40+ users in bulk but each the script now requires manual intervention "Type the word 'yes' to continue, or any other input to abort" and in it's absence it aborts without confirmation. See full error below:

Notice: Keypair and certificate request completed. Your files are: .reqq: /etc/openvpn/server/easy-rsa/pki/reqs/SM-MBP-USVPN .key : /etc/openvpn/server/easy-rsa/pki/private/SM-MBP-USVPN

You are about to sign the following certificate.Please check over the details shown below for accuracy. Note that this request has not been cryptographically verified. Please be sure it came from a trusted source or that you have verified the request checksum with the sender. Request subject, to be signed as a client certificate for '825' days:

subject=commonName = SM-MBP-USVPN

Type the word 'yes' to continue, or any other input to abort.  Confirm request details:  Notice: Aborting without confirmation.

.crt: No such file or directoryrver/easy-rsa/pki/issued/SM-MBP-USVPN cat: '/etc/openvpn/server/easy-rsa/pki/private/SM-MBP-USVPN'$'\r'' .key': No such file or directory .ovpnd, configuration is available at /root/SM-MBP-USVPN

Would be super grateful if you could provide some pointers on how to fix this. Not looking forward to creating so many users manually, one at a time.