[Solved] Two config dir on a windows client

Scripts to manage certificates or generate config files

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

Locked
_Alain_
OpenVpn Newbie
Posts: 2
Joined: Fri Jul 15, 2016 9:55 am

[Solved] Two config dir on a windows client

Post by _Alain_ » Fri Jul 15, 2016 10:04 am

Hi,

I'm looking for a way to have
-one config dir with all my .ovpn file, to be available within the openvpn-gui
-another dir containing THE .ovpn file to be used while starting openvpn as a service.

A found a way to do it a long time ago on a now defunct PC and i didn't manage to find it again ... :cry:

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

Re: Two config dir on a windows client

Post by TinCanTech » Fri Jul 15, 2016 10:22 am

I have not tried it myself but you can edit the registry > HKLM > Software > Openvpn > * to point to different config_dir

_Alain_
OpenVpn Newbie
Posts: 2
Joined: Fri Jul 15, 2016 9:55 am

Re: Two config dir on a windows client

Post by _Alain_ » Fri Jul 15, 2016 10:47 am

Thanks it's worked.

We have 2 sets of registry values:
HKLM > Software > Openvpn used by the service
HKLM > Software > Openvpn-gui used by the gui

each of them got its own config_dir ;-)

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

Re: [Solved] Two config dir on a windows client

Post by TinCanTech » Fri Jul 15, 2016 10:57 am

Thanks for letting me know (I was not 100% sure it would work) 8-)

Locked