Page 1 of 1

Adding a new client key without having to ./cliean-all

Posted: Tue May 31, 2011 4:14 pm
by orudie
Greetings.

I have a functioning openvpn with about 5 or 6 active clients.

Now I need to add a new client. I am trying to do so by

./build-key clientname and here is what I get:

Code: Select all

./build-key clientname
  Please edit the vars script to reflect your configuration,
  then source it with "source ./vars".
  Next, to start with a fresh PKI configuration and to delete any
  previous certificates and keys, run "./clean-all".
  Finally, you can run this tool (pkitool) to build certificates/keys.
I really do not want to do ./clean-all.

I am stuck, please help.

Re: Adding a new client key without having to ./cliean-all

Posted: Tue May 31, 2011 5:01 pm
by orudie
Found solution.

Code: Select all

chmod +x vars
./vars
source ./vars
./build-key clientname

Re: Adding a new client key without having to ./cliean-all

Posted: Tue Apr 11, 2017 7:17 pm
by GbMax78
I did:

Code: Select all

root@Server01:/etc/openvpn/easy-rsa# chmod +x vars 
root@Server01:/etc/openvpn/easy-rsa# ./vars 
./vars: riga 29: /etc/openvpn/easy-rsa/openssl-1.0.0.cnf: Permesso negato
NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/easy-rsa/keys
"Permesso negato" means something like you don't have access to the file.