trying to automate commands without a user having to press return, confirm with 'yes' or input data. This is the best I can do so far, its not fully automated, problem at ./easyrsa gen-req server nopass
------------------------------------------------------------------- mkdir $HOME/clientside cd $HOME/clientside git clone git://github.com/OpenVPN/easy-rsa cd easy-rsa/easyrsa3 ./easyrsa init-pki ./easyrsa --batch gen-req client1 nopass mkdir $HOME/serverside cd $HOME/serverside git clone git://github.com/OpenVPN/easy-rsa cd easy-rsa/easyrsa3 ./easyrsa init-pki ./easyrsa --batch build-ca nopass ./easyrsa gen-req server nopass *** manually press return *** ./easyrsa --batch sign-req server server ./easyrsa --batch import-req $HOME/clientside/easy-rsa/easyrsa3/pki/reqs/client1.req client1 ./easyrsa --batch sign-req client client1 ------------------------------------------------------------------ Two problems 1) ./easyrsa --batch gen-req server nopass causes trouble when I use --batch I get this fault later at signing ./easyrsa --batch sign-req client client1 Using configuration from /home/pi/serverside/easy-rsa/easyrsa3/openssl-1.0.cnf Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows commonName :PRINTABLE:'ChangeMe' Certificate is to be certified until Oct 30 07:01:55 2024 GMT (3650 days) failed to update database TXT_DB error number 2 Easy-RSA error: signing failed (openssl output above may have more detail) 2) ./easyrsa --batch build-ca I cannot automate this as it requires a password manually entered would like to have the password as a command option at the moment to automate, cannot use password. must use ./easyrsa --batch build-ca nopass
------------------------------------------------------------------------------
_______________________________________________ Openvpn-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-users
