[wpkg-users] OpenVPN
Brian May
brian at vpac.org
Thu Oct 30 01:33:30 CET 2008
Tarjei Huse wrote:
> Hi, does anyone happen to have a working example for installing OpenVPN?
>
> I'm a WPKG newbie so I was hoping someone had done some of the
> groundwork before me.
<packages>
<package
id="openvpn"
name="OpenVPN"
revision="1"
priority="0"
reboot="false">
<check type="uninstall" condition="exists" path="OpenVPN
2.0.9-gui-1.0.3"/>
<install
cmd='%SOFTWARE%\openvpn\openvpn-2.0.9-gui-1.0.3-install.exe /S'/>
<install cmd='%comspec% /c copy "%SOFTWARE%\openvpn\ca.crt"
"C:\Program Files\OpenVPN\config"'/>
<install cmd='%comspec% /c copy
"%SOFTWARE%\openvpn\openvpn_ldap.ovpn" "C:\Program Files\OpenVPN\config"'/>
<upgrade
cmd='%SOFTWARE%\openvpn\openvpn-2.0.9-gui-1.0.3-install.exe /S'/>
<remove cmd='"%PROGRAMFILES%\openvpn\Uninstall.exe" /S'/>
</package>
</packages>
Oh, note, this is the GUI version of openvpn. As in the one that comes
with GUI + openvpn.
I don't think openvpn needs the certificate to be installed, the config
file references it directly.
Installing the ca certificate is easy (required for other things), I
used regedit to find where it got inserted in the registry, and exported
it. As explained on some website. Tedious process, fortunately only
needs to be done once.
For this particular certificate, it was
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SystemCertificates\AuthRoot\Certificates\49E864807DC46CE85C29BAF4A14AA05B90DAFEA0
<packages>
<package
id="certificates"
name="CA Certificates"
revision="1"
priority="0"
execute="once">
<install cmd='regedit /s "%SOFTWARE%\certificates\cacert.reg"' />
</package>
</packages>
Brian May
More information about the wpkg-users
mailing list