So I'm creating a php script that generates an openvpn certificate and I want to do it using a bash script, what's the best to communicate with this bash script so I can respond to it's questions.
Here are the images below
Asked
Active
Viewed 97 times
0

MAH3R
- 27
- 6
-
You may want to take a look at https://stackoverflow.com/a/36812772/797495 – Pedro Lobito May 28 '17 at 01:50
-
openvpn.sh: line 37: cd: /etc/openvpn/easy-rsa/2.0: No such file or directory – MAH3R May 28 '17 at 01:54
-
The answer states: ***"Make sure you edit, at least, the following variables OPENVPN_RSA_DIR OPENVPN_KEYS KEY_DOWNLOAD_PATH***" - find out where `openvpn/easy-rsa/` is located and change accordingly – Pedro Lobito May 28 '17 at 01:56
-
It's there but there's no 2.0 file/folder – MAH3R May 28 '17 at 02:15
-
Could you link me to the appropriate openvpn installation that his script requires? – MAH3R May 28 '17 at 02:54
-
I'm using RSA 3 not 2 is there any script for RSA 3 ? – MAH3R May 28 '17 at 03:19
-
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. zip error: Nothing to do! (/var/www/html/vpns/clients.zip) – MAH3R May 28 '17 at 03:22
-
Ok I managed to fix it, this provides only key and certificate I want instead a .ovpn file – MAH3R May 28 '17 at 03:28
-
I wrote my own bash script for this as of now, took the time and did thanks for everything :) – MAH3R May 28 '17 at 15:19