Page 1 of 1
EasyRSA :system was unable to find the specified registry key or value
Posted: Thu Apr 04, 2019 7:27 am
by mrjohn
Hi
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
got :
1 file copied
then I run
and got:
system was unable to find the specified registry key or value
thanks for any help
Re: EasyRSA :system was unable to find the specified registry key or value
Posted: Thu Apr 04, 2019 12:52 pm
by TinCanTech
Did you edit vars.bat ?
Re: EasyRSA :system was unable to find the specified registry key or value
Posted: Thu Apr 04, 2019 3:30 pm
by mrjohn
Hi.
NO edit done.
Re: EasyRSA :system was unable to find the specified registry key or value
Posted: Thu Apr 04, 2019 3:56 pm
by TinCanTech
mrjohn wrote: ↑Thu Apr 04, 2019 7:27 am
system was unable to find the specified registry key or value
Which must be caused by this in vars.bat
Code: Select all
rem Automatically set PATH to openssl.exe
FOR /F "tokens=2*" %%a IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN"') DO set "PATH=%PATH%;%%b\bin"
Re: EasyRSA :system was unable to find the specified registry key or value
Posted: Thu Apr 04, 2019 5:07 pm
by mrjohn
reg key exists:

thanks
Re: EasyRSA :system was unable to find the specified registry key or value
Posted: Thu Apr 04, 2019 5:43 pm
by TinCanTech
Even though you strategically cut off the actual data portion of the keys, I can see that you have used a
non-standard directory for openvpn .. maybe that is why.
Re: EasyRSA :system was unable to find the specified registry key or value
Posted: Fri Apr 05, 2019 5:22 am
by mrjohn
no it doesn't work.
can I use EasyRSA 3 instead,but have no idea how to use it,for v.2 I used steps from there:
https://blog.bobbyallen.me/2016/02/07/setting-up-openvpn-server-on-windows-2012-r2/
I want to create a secure connection for a Firebird SQL database
thanks
Re: EasyRSA :system was unable to find the specified registry key or value
Posted: Sat Apr 27, 2019 6:59 am
by mrjohn
solved using EasyRSA 3 and steps from here https://www.sys-dev.cat/blog/3/