Date: Thu, 09 Apr 2009 12:44:43 -0500 From: "Karl O. Pinc" References: <1239166995l.18482l.9l@...1207...> <1239203062l.18482l.11l@...1207...> <9e0cf0bf0904081546y3daea253u62c234e63a6e5b08@...278...> <1239246215l.5600l.0l@...1207...> <9e0cf0bf0904082301ia16b642n3781adc357958de3@...278...> <1239281926l.5600l.2l@...1207...> In-Reply-To: <1239281926l.5600l.2l@...1207...> (from kop@...1206... on Thu Apr 9 07:58:46 2009) Message-Id: <1239299083l.17083l.3l@...1207...> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-A2QpqqDxcti7lzXuiOZR" Subject: Re: [Openvpn-devel] Unpackged Windows binaries? -- Problems building 2.1 rc15 on Windows XP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: openvpn-devel@lists.sourceforge.net Cc: Alon Bar-Lev , dave --=-A2QpqqDxcti7lzXuiOZR Content-Type: text/plain; DelSp=Yes; Format=Flowed; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 04/09/2009 07:58:46 AM, Karl O. Pinc wrote: >=20 > On 04/09/2009 01:01:50 AM, Alon Bar-Lev wrote: > > On Thu, Apr 9, 2009 at 6:03 AM, Karl O. Pinc wrote: > > > It occurs to me that if I want to do more than > > > beg I should submit a patch, so one is attached. It occurs to me that it's no good having an unpackaged Windows binary archive without instructions regarding how to use it. Attached is a patch to INSTALL-win32.html that documents how to make a custom Windows installer using the archive produced by my previous patch. I hope OpenVPN will consider these patches for inclusion. Regards, Karl Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein --=-A2QpqqDxcti7lzXuiOZR Content-Type: text/x-patch; charset=us-ascii; name=INSTALL-win32.html.patch Content-Disposition: attachment; filename=INSTALL-win32.html.patch Content-Transfer-Encoding: quoted-printable --- INSTALL-win32.html 2005-10-18 03:46:47.000000000 -0500 +++ INSTALL-win32.html.patched 2009-04-09 12:38:59.000000000 -0500 @@ -829,6 +829,87 @@ =20
=20 +

Notes -- Customizing the Windows installer

+ +

This section is for advanced administrators only. The +recommended approach is to first configure and test your VPN and +customize the installer only after you have a working +configuration.

+ +

Administrators deploying OpenVPN on Windows may wish to customize +the Windows installer in a site-specific manner. Certificates, +configurations, help files and the like can be included in the +customized installer to provide a single installer, or an installer +per-client, that installs everything a site requires to run OpenVPN on +a client.

+ +

Note that an MS Windows machine is not a requirement.

+ +

Administrators requiring further customization should see the +section titled Building from +source.

+ +

You will need the following:

+ +
    +
  1. The OpenVPN unpackaged Windows binaries from the OpenVPN Download page.
  2. + =20 +
  3. Nullsoft Install System
    + http://www.nullsoft.com/fr= ee/nsis/
  4. +
+ +

To make a custom installer use the NSIS installer compiler:

+ +
    +
  1. Unpack the OpenVPN unpackaged windows binaries. The + result should be a directory, the unpacked OpenVPN binary + directory. This directory should have subdirectories.
  2. + +
  3. Using Internet Explorer (TM) navigate to the + nsi subdirectory of the unpacked OpenVPN binary + directory. + +
  4. Right click on the icon labeled openvpn and + select "Compile NSIS script". Un*x users can use the + makensis openvpn.nsi command.
  5. +
+ +

The result should be a Windows installer in the OpenVPN binary +directory.

+ +

A simple customization is to install a configuration file and a +certificate authority certificate whenever OpenVPN is installed as a +service. To do this:

+ +
    +
  1. Put your CA certificate file (i.e. ca.crt) + into the nsi subdirectory of the unpacked + OpenVPN binary directory.
  2. + +
  3. Put your configuration file + (i.e. myserver.ovpn) into the nsi + subdirectory of the unpacked OpenVPN binary directory. Your + configuration file should contain the line
    ca + ca.crt
    to direct OpenVPN to your CA certificate.
  4. + +
  5. Add the 2 lines:
    File + "myserver.ovpn"
    File "ca.crt"
    + to the nsi/openvpn.nsi file at the bottom of + the section titled: Section "${P`'RODUCT_NAME} Service" + SecService
  6. +
+ +

Note that putting your configuration and CA certificate files into +the nsi subdirectory is not the most organized approach. +It is simply the easiest way to get started with NSIS.

+ +

For more information see the NSIS +Documentation.

+ +
+ +

Notes -- Building from source

=20

This section is for developers only.

--=-A2QpqqDxcti7lzXuiOZR--