Skip to contentSkip to conversation

how to roll your own OpenVPN Windows installer

Openvpn-devel Jan Just Keijser 3 participants 4 messages Sep 8, 2017 – Sep 14, 2017

lore
Share & tools
lore
#0 lore raw

hi dev list,

someone asked me this question: how can one roll their own Windows OpenVPN installer, including a signed TAP driver? There's no need to rebuild OpenVPN or the TAP driver, but they do need to include other things, such as certificates, config files etc. Is there a way to repackage the existing TAP driver? are there instructions for that?

TIA,

JJK

#1 lore raw

2017-09-08 15:10 GMT+05:00 Jan Just Keijser <[email protected]...>:

Quoted 9 lines

hi dev list,

someone asked me this question: how can one roll their own Windows OpenVPN installer, including a signed TAP driver? There's no need to rebuild OpenVPN or the TAP driver, but they do need to include other things, such as certificates, config files etc.
Is there a way to repackage the existing TAP driver? are there instructions for that?

it depends on what he wants (and why).
just being curious, why does he want to roll own installer ?

as for rolling installer, easiest way is to use
https://github.com/openvpn/openvpn-build and add some modification (for example, custom openvpn configs)

if he wants also to sign tap drivers, he needs EV codesign cert (for windows 10)

Quoted 15 lines

TIA,

JJK

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#2 lore raw
In reply to Jan Just Keijser

Il 08/09/2017 13:10, Jan Just Keijser ha scritto:

Quoted 9 lines

hi dev list,

someone asked me this question: how can one roll their own Windows OpenVPN installer, including a signed TAP driver? There's no need to rebuild OpenVPN or the TAP driver, but they do need to include other things, such as certificates, config files etc. Is there a way to repackage the existing TAP driver? are there instructions for that?

TIA,

JJK

Hi,

I meant to answer this earlier, but then apparently forgot. The tap-windows installer is simply embedded into the main OpenVPN installer, so the pre-existing, signed tap-windows6 driver can be reused as-is. An OpenVPN installer can be generated in the openvpn-build cross-compile environment:

<https://github.com/OpenVPN/openvpn-build>

Usage of openvpn-build is pretty well documented on Trac:

<https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem>

On this page you can find automated cross-compile environment setup scripts which work for Ubuntu 14.04 and 16.04:

<https://community.openvpn.net/openvpn/wiki/SettingUpGenericBuildsystem>

It is also possible to generate a new installer without actually building anything. The challenge is that the NSI install script (openvpn.nsi) in openvpn-build depends on a number of variables set during the build process, and on a certain directory structure. So it is generally easier just to rebuild everything.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#3 lore raw

Hi all,

Quoted 18 lines · Samuli Seppänen

Il 08/09/2017 13:10, Jan Just Keijser ha scritto:

Quoted 9 lines

hi dev list,

someone asked me this question: how can one roll their own Windows OpenVPN installer, including a signed TAP driver? There's no need to rebuild OpenVPN or the TAP driver, but they do need to include other things, such as certificates, config files etc. Is there a way to repackage the existing TAP driver?  are there instructions for that?

TIA,

JJK

Hi,

I meant to answer this earlier, but then apparently forgot. The tap-windows installer is simply embedded into the main OpenVPN installer, so the pre-existing, signed tap-windows6 driver can be reused as-is. An OpenVPN installer can be generated in the openvpn-build cross-compile environment:

<https://github.com/OpenVPN/openvpn-build>

Usage of openvpn-build is pretty well documented on Trac:

Quoted 8 lines

<https://community.openvpn.net/openvpn/wiki/BuildingUsingGenericBuildsystem>

On this page you can find automated cross-compile environment setup scripts which work for Ubuntu 14.04 and 16.04:

<https://community.openvpn.net/openvpn/wiki/SettingUpGenericBuildsystem>

It is also possible to generate a new installer without actually building anything. The challenge is that the NSI install script (openvpn.nsi) in openvpn-build depends on a number of variables set during the build process, and on a certain directory structure. So it is generally easier just to rebuild everything.

thanks all for the feedback, this is exactly what my colleague was looking for! He's now convinced that he no longer wants to rebuild openvpn or the tap driver :)

cheers,

JJK