0

I've installed (as Admin) latest version of OpenVPN (2.4.7-I603) on Windows 2012 x64. I've checked on installer EasyRSA 2. Then trying to generate the certificate go in path ..\program files\OpenVPN\easy-rsa\ open command prompt(as Admin) run

 init-config.bat

got :

1 file copied

then I run vars.bat and got:

system was unable to find the specified registry key or value

thanks for any help

Itai Ganot
  • 10,424
  • 27
  • 88
  • 143
mrapi
  • 143
  • 2
  • 8

2 Answers2

0

I had the same problem and for me I had to change the vars.bat since the version that gets shipped uses the default 32 bit switch when it should be 64bit registry option. Look for this line (probably line 7) and it might work:

FOR /F "tokens=2*" %%a IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN"') DO set "PATH=%PATH%;%%b\bin"

to this:

FOR /F "tokens=2*" %%a IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN" /reg:64') DO set "PATH=%PATH%;%%b\bin"
deejbee
  • 101
  • 1
0

solved using EasyRSA 3 and steps from here and here

mrapi
  • 143
  • 2
  • 8