automate the creation of certificates

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
cristianofmc
OpenVpn Newbie
Posts: 3
Joined: Fri Aug 19, 2016 1:43 pm

automate the creation of certificates

Post by cristianofmc » Wed Aug 24, 2016 6:43 pm

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

Post Reply