Problem: I'm trying to script an EasyRSA key gen request, but, if the key file already exists, any attempt to overwrite using yes
or echo yes
commands result in Aborting without confirmation
. I believe EasyRSA is requiring me to actually type 'yes' and anything else results in an abort.
I'm wondering if there's another way to pass 'yes' to a prompt that requires a typed response?
What I've tried: yes | <command>
, yes yes | <command>
and echo yes | <command>
Try it:
easyrsa --batch gen-req $servername nopass
From the man page:
--batch : set automatic (no-prompts when possible) mode
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With