EasyRSA :system was unable to find the specified registry key or value

Support forum for Easy-RSA certificate management suite.

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

Locked
mrjohn
OpenVpn Newbie
Posts: 18
Joined: Thu Apr 04, 2019 7:24 am

EasyRSA :system was unable to find the specified registry key or value

Post by mrjohn » Thu Apr 04, 2019 7:27 am

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

Code: Select all

init-config.bat
got :
1 file copied
then I run

Code: Select all

vars.bat
and got:
system was unable to find the specified registry key or value
thanks for any help

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

Re: EasyRSA :system was unable to find the specified registry key or value

Post by TinCanTech » Thu Apr 04, 2019 12:52 pm

Did you edit vars.bat ?

mrjohn
OpenVpn Newbie
Posts: 18
Joined: Thu Apr 04, 2019 7:24 am

Re: EasyRSA :system was unable to find the specified registry key or value

Post by mrjohn » Thu Apr 04, 2019 3:30 pm

Hi.
NO edit done.

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

Re: EasyRSA :system was unable to find the specified registry key or value

Post by TinCanTech » Thu Apr 04, 2019 3:56 pm

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"

mrjohn
OpenVpn Newbie
Posts: 18
Joined: Thu Apr 04, 2019 7:24 am

Re: EasyRSA :system was unable to find the specified registry key or value

Post by mrjohn » Thu Apr 04, 2019 5:07 pm

reg key exists:
Image
thanks

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

Re: EasyRSA :system was unable to find the specified registry key or value

Post by TinCanTech » Thu Apr 04, 2019 5:43 pm

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.

mrjohn
OpenVpn Newbie
Posts: 18
Joined: Thu Apr 04, 2019 7:24 am

Re: EasyRSA :system was unable to find the specified registry key or value

Post by mrjohn » Fri Apr 05, 2019 5:22 am

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

mrjohn
OpenVpn Newbie
Posts: 18
Joined: Thu Apr 04, 2019 7:24 am

Re: EasyRSA :system was unable to find the specified registry key or value

Post by mrjohn » Sat Apr 27, 2019 6:59 am

solved using EasyRSA 3 and steps from here https://www.sys-dev.cat/blog/3/

Locked