Create certs without keyboard input

Support forum for Easy-RSA certificate management suite.
Post Reply
caldwellglobal
OpenVpn Newbie
Posts: 2
Joined: Wed Feb 24, 2021 6:05 pm

Create certs without keyboard input

Post by caldwellglobal » Wed Feb 24, 2021 6:33 pm

Looking to upgrade a system from EasyRsa 2 to EasyRsa 3. In testing with ./easyrsa, it seems to REQUIRE hitting the Enter key at the very least.

I tried searching but so far haven't found a way to do a pure CLI entry which will create a cert/client without having to hit enter. For scripting purposes, we set up the old with a variety of the pkitool command to not require input.

Is that possible here?

caldwellglobal
OpenVpn Newbie
Posts: 2
Joined: Wed Feb 24, 2021 6:05 pm

Re: Create certs without keyboard input

Post by caldwellglobal » Wed Feb 24, 2021 7:27 pm

Also, if there is no way to automate use of easyrsa 3, is there any practical reason that 2 should not be run?

User avatar
TinCanTech
Forum Team
Posts: 9186
Joined: Fri Jun 03, 2016 1:17 pm

Re: Create certs without keyboard input

Post by TinCanTech » Wed Feb 24, 2021 7:46 pm

Option --batch

You will also need to upgrade your version 2 PKI to version 3:

Code: Select all

./easyrsa upgrade pki|ca
You may also like to try:
https://github.com/TinCanTech/easy-tls

Which comes with fully inter-active menus, so you don't need to read so much.

Testing and feedback welcome 8-)

Post Reply