Install 2.3.6 in a Win7 environment - need instructions

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

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

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
probably
OpenVpn Newbie
Posts: 4
Joined: Thu Mar 19, 2015 11:17 pm

Install 2.3.6 in a Win7 environment - need instructions

Post by probably » Thu Mar 19, 2015 11:27 pm

I am trying to follow these instructions: http://openvpn.net/index.php/open-sourc ... ml#install . But when the instructions on setting up "Generate the master Certificate Authority (CA) certificate & key"

The instructions "If you are using Windows, open up a Command Prompt window and cd to \Program Files\OpenVPN\easy-rsa. Run the following batch file to copy configuration files into place (this will overwrite any preexisting vars.bat and openssl.cnf files):

init-config"

do not relate to the files on my system, meaning I do not have an init-config file to run nor an OpenVPN\easy-rsa folder.

Are there updated instructions someplace for "OpenVPN/easy-rsa-master" files which are used for a 2.3.x installation?

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Install 2.3.6 in a Win7 environment - need instructions

Post by maikcat » Fri Mar 20, 2015 7:01 am

easy-rsa scripts have been removed from the latest releases of openvpn,

meaning that you do have 2 options:

you download easy-rsa 3 from github or

you download an older version of openvpn which contains easy rsa ;)

Michael.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Install 2.3.6 in a Win7 environment - need instructions

Post by Traffic » Fri Mar 20, 2015 9:34 am

I just downloaded Installer (32-bit), Windows XP and later openvpn-install-2.3.6-I003-i686.exe and easy-rsa is still included.

Although, the option is not selected on install by default, selecting:
  • OpenSSL Utilities
  • OpenVPN RSA Certificate Manager Scripts
Will install easy-rsa ..

probably
OpenVpn Newbie
Posts: 4
Joined: Thu Mar 19, 2015 11:17 pm

Re: Install 2.3.6 in a Win7 environment - need instructions

Post by probably » Fri Mar 20, 2015 11:19 pm

I have downloaded easyrsa 3 and the files do not correspond with the instructions, i.e. there does not seem to be an init-config bat file anywhere..

I need step by step instructions and can't find them. As a shot in the dark I tried entering this: c:\Program Files\OpenVPN\easy-rsa-master\easyrsa3>easyrsa vars

and got this: 'easyrsa' is not recognized as an internal or external command,
operable program or batch file.

Hopefully somebody can help me understand my problem...

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Install 2.3.6 in a Win7 environment - need instructions

Post by Traffic » Sat Mar 21, 2015 4:58 pm

Easy-RSAv300rc2 (Windows):

Download:
  • Unzip to directory ..
    Navigate to directory ..
Run:
  • EasyRSA-3.0.0-rc2\EasyRSA Start.bat
Help:
  • EasyRSA-3.0.0-rc2\README.quickstart.html
    EasyRSA-3.0.0-rc2\README-Windows.txt
    EasyRSA-3.0.0-rc2\doc

probably
OpenVpn Newbie
Posts: 4
Joined: Thu Mar 19, 2015 11:17 pm

Re: Install 2.3.6 in a Win7 environment - need instructions

Post by probably » Mon Mar 23, 2015 3:18 am

Thanks, that seemed to be working well until I tried to do the init and build, here is the session:

"
Welcome to the EasyRSA 3 Shell for Windows.
Easy-RSA 3 is available under a GNU GPLv2 license.

Invoke './easyrsa' to call the program. Without commands, help is displayed.

EasyRSA Shell
# ./easyrsa build-ca

Easy-RSA error:

EASYRSA_PKI does not exist (perhaps you need to run init-pki)?
Expected to find the EASYRSA_PKI at: C:/Program Files/OpenVPN/EasyRSA-3.0.0-rc2/
pki
Run easyrsa without commands for usage and command help.

EasyRSA Shell
# ./easyrsa init-pki

init-pki complete; you may now create a CA or requests.
Your newly created PKI dir is: C:/Program Files/OpenVPN/EasyRSA-3.0.0-rc2/pki


EasyRSA Shell
# ./easyrsa build-ca

Easy-RSA error:

EASYRSA_PKI does not exist (perhaps you need to run init-pki)?
Expected to find the EASYRSA_PKI at: C:/Program Files/OpenVPN/EasyRSA-3.0.0-rc2/
pki
Run easyrsa without commands for usage and command help.

EasyRSA Shell
#"

It said it completed the pki but no pki folder was written and the build-ca would not work, any ideas?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Install 2.3.6 in a Win7 environment - need instructions

Post by Traffic » Mon Mar 23, 2015 11:44 am

Did you Run as Administrator ?

probably
OpenVpn Newbie
Posts: 4
Joined: Thu Mar 19, 2015 11:17 pm

Re: Install 2.3.6 in a Win7 environment - need instructions

Post by probably » Mon Mar 23, 2015 3:47 pm

when I right-click and run EasyRSA Start.bat as administrator, it asks me to verify and I click yes, then it flashes a command prompt window on screen and disappears. In properties menu Run as Administrator is greyed out, so it seems I cannot run the batch file as administrator?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Install 2.3.6 in a Win7 environment - need instructions

Post by Traffic » Mon Mar 23, 2015 4:32 pm

Command Prompt Icon: <Right-click>: "Run as Administrator"

:roll:

Post Reply