Page 1 of 1

Client Key

Posted: Mon Jun 06, 2011 9:28 pm
by hi007007
Hello,

I wrote script for creating VPN-key for client into Perl and when the ./build-key "Client Name" step executing, it ask me couple question like county: , State: ...... what should I have to change in config of VPN so it take whatever assign by default instead of asking me to enter. I already modified vars file and assign default values. Any help would be appreciated. Thanks.

J

Re: Client Key

Posted: Tue Jun 07, 2011 8:24 am
by janjust
the 'build-key --batch' command uses the env vars found in 'vars' , in combination with the openssl.cnf file to create a new client signing request (CSR). Read the sources for the 'easy-rsa' 'pki-tool' command to see how it is called directly.
Alternatively it is also possible to generate a CSR directly without having to rely on the env vars found in the 'vars' file.

Re: Client Key

Posted: Tue Jun 07, 2011 5:24 pm
by hi007007
Thanks for your reply but I am very new to these stuff so if you can help in detail that will be great because I don't want to mess up with server. Thanks.

Re: Client Key

Posted: Wed Jun 08, 2011 7:41 am
by janjust
you don't have to change anything to the server config; simply start with the HOWTO
http://openvpn.net/index.php/open-sourc ... o.html#pki

and follow that. Some work on your part IS required :)