Page 1 of 1

automate the creation of certificates

Posted: Wed Aug 24, 2016 6:43 pm
by cristianofmc
I need to automate the creation of certificates.
Currently I'm trying this way:

Code: Select all

cd /etc/openvpn/easy-rsa/
source ./vars
./build-key --batch client
but it resulted in failure:

failed to update database
TXT_DB error number 2

I got to test this way:

Code: Select all

 echo -en "\ n \ n \ n \ n \ n \ n \ n \ ny \ ny \ n" | client1 ./build-key
but as it does not recognize the "Y"

I would like your help