build-ca.bat not working

Support forum for Easy-RSA certificate management suite.

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

Post Reply
mmmshab
OpenVpn Newbie
Posts: 1
Joined: Sun Sep 03, 2017 11:26 am

build-ca.bat not working

Post by mmmshab » Sun Sep 03, 2017 11:33 am

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>

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: build-ca.bat not working

Post by TinCanTech » 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
OpenVPN Power User
Posts: 65
Joined: Mon Dec 12, 2016 6:07 pm

Re: build-ca.bat not working

Post by maxburn » Wed Feb 28, 2018 7:55 pm

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?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: build-ca.bat not working

Post by TinCanTech » Wed Feb 28, 2018 8:04 pm

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 ?

maxburn
OpenVPN Power User
Posts: 65
Joined: Mon Dec 12, 2016 6:07 pm

Re: build-ca.bat not working

Post by maxburn » Wed Feb 28, 2018 8:22 pm

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.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: build-ca.bat not working

Post by TinCanTech » Wed Feb 28, 2018 8:43 pm

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-)

Post Reply