Page 1 of 1

build-ca.bat not working

Posted: Sun Sep 03, 2017 11:33 am
by mmmshab
Hi.
I have problem with config openvpn on my server.
it have problem with "build-ca",it not working. please help me
my cmd commends is in below:

Code: Select all

C:\Program Files\OpenVPN\easy-rsa>init-config

C:\Program Files\OpenVPN\easy-rsa>copy vars.bat.sample vars.bat
        1 file(s) copied.

C:\Program Files\OpenVPN\easy-rsa>vars

C:\Program Files\OpenVPN\easy-rsa>clean-all
        1 file(s) copied.
        1 file(s) copied.

C:\Program Files\OpenVPN\easy-rsa>build-ca
'openssl' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\OpenVPN\easy-rsa>build-ca.bat
'openssl' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\OpenVPN\easy-rsa>

Re: build-ca.bat not working

Posted: Sun Sep 03, 2017 11:36 am
by TinCanTech
You must include openssl.exe in your PATH environment variable.

The simple way to do this is re-install openvpn correctly.

Re: build-ca.bat not working

Posted: Wed Feb 28, 2018 7:55 pm
by maxburn
TinCanTech wrote:
Sun Sep 03, 2017 11:36 am
You must include openssl.exe in your PATH environment variable.

The simple way to do this is re-install openvpn correctly.
I keep running into this on every new server I build. I don't know how much more correct I can get, I selected "open SSL" check box on the GUI installer and this happens every time. What further is necessary?

Re: build-ca.bat not working

Posted: Wed Feb 28, 2018 8:04 pm
by TinCanTech
mmmshab wrote:
Sun Sep 03, 2017 11:33 am

Code: Select all

C:\Program Files\OpenVPN\easy-rsa>build-ca 
'openssl' is not recognized as an internal or external command, operable program or batch file.
TinCanTech wrote:
Sun Sep 03, 2017 11:36 am
You must include openssl.exe in your PATH environment variable.

The simple way to do this is re-install openvpn correctly
maxburn wrote:
Wed Feb 28, 2018 7:55 pm
I selected "open SSL" check box on the GUI installer and this happens every time
Which version ?

Re: build-ca.bat not working

Posted: Wed Feb 28, 2018 8:22 pm
by maxburn
Seems I was doing it to myself.

https://github.com/OpenVPN/easy-rsa-old/pull/5

Per this discussion I realized that is set in the vars.bat. I was carrying with me an older vars.bat with most things in the bottom set section already filled out.

Re: build-ca.bat not working

Posted: Wed Feb 28, 2018 8:43 pm
by TinCanTech
Ahh hah ! Well spotted.

EasyRSA on Windows has recently (See post date) received quite a lot of new support :geek:

EasyRSA things are improving:
https://github.com/OpenVPN/easy-rsa/releases

8-)