Skip to contentSkip to conversation

OpenVPN 2.1-rc5 released

Openvpn-devel James Yonan 7 participants 23 messages Jan 23, 2008 – Jan 27, 2008 4 messages not in the archive

lore
Share & tools
lore
#0 lore raw

OpenVPN 2.1-rc5 is available, please test. I would especially like feedback on the Windows TAP driver. We've made some portability changes recently to the driver to allow it to run on Win2K through Vista in x86 or x64 modes.

Download:

http://openvpn.net/beta/

File Signatures:

http://openvpn.net/signatures/

Here is the change log:

2008.01.23 -- Version 2.1_rc5

* Fixed Win2K TAP driver bug that was introduced by Vista fixes, incremented driver version to 9.4.

* Windows build system changes:

Incremented included OpenSSL version to openssl-0.9.7m.

Updated openssl.patch for openssl-0.9.7m and added some brief usage comments to the head of the patch.

Added build-pkcs11-helper.sh for building the pkcs11-helper library.

Integrated inclusion of pkcs11-helper into Windows build system.

Upgraded TAP build scripts to use WDK 6001.17121
(Windows 2008 Server pre-RTM).

* Windows installer changes:

Clean up the start menu folder.

Allow for a site-specific sample configuration file and keys to be included in a custom installer (see SAMPCONF macros in settings.in).

New icon (temporary).

* Added "forget-passwords" command to the management interface (Alon Bar-Lev).

* Added --management-signal option to signal SIGUSR1 when the management interface disconnects (Alon Bar-Lev).

* Modified command line and config file parser to allow quoted strings using single quotes ('') (Alon Bar-Lev).

* Use pkcs11-helper as external library, can be downloaded from
https://www.opensc-project.org/pkcs11-helper (Alon Bar-Lev).

* Fixed interim memory growth issue in TCP connect loop where "TCP: connect to %s failed, will try again in %d seconds: %s" is output.

* Fixed bug in epoll driver in event.c, where the lack of a handler for EPOLLHUP could cause 99% CPU usage.

* Defined ALLOW_NON_CBC_CIPHERS for people who don't want to use a CBC cipher for OpenVPN's data channel.

* Added PLUGIN_LIBDIR preprocessor string to prepend a default plugin directory to the dlopen search list when the user specifies the basename of the plugin only (Marius Tomaschewski).

* Rewrote extract_x509_field and modified COMMON_NAME_CHAR_CLASS to allow forward slash characters ("/") in the X509 common name (Pavel Shramov).

* Allow OpenVPN to run completely unprivileged under Linux by allowing openvpn --mktun to be used with --user and --group to set the UID/GID of the tun device node. Also added --iproute option to allow an alternative command to be executed in place of the default iproute2 command (Alon Bar-Lev).

* Fixed --disable-iproute2 in ./configure to actually disable iproute2 usage (Alon Bar-Lev).

* Added --management-forget-disconnect option -- forget passwords when management session disconnects (Alon Bar-Lev).

James

#1 lore raw

All PKCS#11 users, please notice,
There was a major change in the parameters of PKCS#11, please refer to the HOWTO:
http://openvpn.net/howto.html#pkcs11

Regards,
Alon Bar-Lev.

Quoted 102 lines · James Yonan

OpenVPN 2.1-rc5 is available, please test. I would especially like feedback on the Windows TAP driver. We've made some portability changes recently to the driver to allow it to run on Win2K through Vista in x86 or x64 modes.

Download:

http://openvpn.net/beta/

File Signatures:

http://openvpn.net/signatures/

Here is the change log:

2008.01.23 -- Version 2.1_rc5

* Fixed Win2K TAP driver bug that was introduced by Vista fixes, incremented driver version to 9.4.

* Windows build system changes:

Incremented included OpenSSL version to openssl-0.9.7m.

Updated openssl.patch for openssl-0.9.7m and added some brief usage comments to the head of the patch.

Added build-pkcs11-helper.sh for building the pkcs11-helper library.

Integrated inclusion of pkcs11-helper into Windows build system.

Upgraded TAP build scripts to use WDK 6001.17121 (Windows 2008 Server pre-RTM).

* Windows installer changes:

Clean up the start menu folder.

Allow for a site-specific sample configuration file and keys to be included in a custom installer (see SAMPCONF macros in settings.in).

New icon (temporary).

* Added "forget-passwords" command to the management interface (Alon Bar-Lev).

* Added --management-signal option to signal SIGUSR1 when the management interface disconnects (Alon Bar-Lev).

* Modified command line and config file parser to allow quoted strings using single quotes ('') (Alon Bar-Lev).

* Use pkcs11-helper as external library, can be downloaded from
https://www.opensc-project.org/pkcs11-helper (Alon Bar-Lev).

* Fixed interim memory growth issue in TCP connect loop where "TCP: connect to %s failed, will try again in %d seconds: %s" is output.

* Fixed bug in epoll driver in event.c, where the lack of a handler for EPOLLHUP could cause 99% CPU usage.

* Defined ALLOW_NON_CBC_CIPHERS for people who don't want to use a CBC cipher for OpenVPN's data channel.

* Added PLUGIN_LIBDIR preprocessor string to prepend a default plugin directory to the dlopen search list when the user specifies the basename of the plugin only (Marius Tomaschewski).

* Rewrote extract_x509_field and modified COMMON_NAME_CHAR_CLASS to allow forward slash characters ("/") in the X509 common name (Pavel Shramov).

* Allow OpenVPN to run completely unprivileged under Linux by allowing openvpn --mktun to be used with --user and --group to set the UID/GID of the tun device node. Also added --iproute option to allow an alternative command to be executed in place of the default iproute2 command (Alon Bar-Lev).

* Fixed --disable-iproute2 in ./configure to actually disable iproute2 usage (Alon Bar-Lev).

* Added --management-forget-disconnect option -- forget passwords when management session disconnects (Alon Bar-Lev).

James

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openvpn-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

#17 lore raw
Quoted 1 line

I try to setup a toolchain for windows.

I build lzo-2.0.2 and openssl-0.9.7m (patched)

OPENSSL_DIR=~/openssl-0.9.7m
export OPENSSL_DIR

building openvpn didn't work (maybe it's only to late and I didn't see an obvious thing)

[email protected]... ~/openvpn-2.1_rc5

$ make -f makefile.w32
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I./openssl/include -I/include -I/include -c crypto.c -o crypto.o
In file included from crypto.c:35:
crypto.h:40:29: openssl/objects.h: No such file or directory
crypto.h:41:26: openssl/rand.h: No such file or directory
crypto.h:42:25: openssl/evp.h: No such file or directory
crypto.h:43:26: openssl/hmac.h: No such file or directory

greetings
Carsten

#18 lore raw
Quoted 11 lines · Carsten Krüger
Quoted 2 lines

I try to setup a toolchain for windows.

I build lzo-2.0.2 and openssl-0.9.7m (patched)

OPENSSL_DIR=~/openssl-0.9.7m
export OPENSSL_DIR

building openvpn didn't work (maybe it's only to late and I didn't see an obvious thing)

Quoted 11 lines

[email protected]... ~/openvpn-2.1_rc5

$ make -f makefile.w32
gcc -g -O2 -Wall -Wno-unused-function -Wno-unused-variable -mno-cygwin -I./openssl/include -I/include -I/include -c crypto.c -o crypto.o
In file included from crypto.c:35:
crypto.h:40:29: openssl/objects.h: No such file or directory
crypto.h:41:26: openssl/rand.h: No such file or directory
crypto.h:42:25: openssl/evp.h: No such file or directory
crypto.h:43:26: openssl/hmac.h: No such file or directory

Use ./domake-win to build OpenVPN on Windows (see comments as well in this file). Build settings are in install-win32/settings.in.

James

#19 lore raw

Hello James,

Quoted 1 line

Use ./domake-win to build OpenVPN on Windows (see comments as well in

That file didn't exist in rc5, I found it in rc4.

greetings
Carsten

#21 lore raw
In reply to James Yonan

2.1-rc5 has a minor pkcs11 option processing bug. I've built 2.1-rc6 with the fix.

Download:

http://openvpn.net/beta/

James

Quoted 99 lines · James Yonan

OpenVPN 2.1-rc5 is available, please test. I would especially like feedback on the Windows TAP driver. We've made some portability changes recently to the driver to allow it to run on Win2K through Vista in x86 or x64 modes.

Download:

http://openvpn.net/beta/

File Signatures:

http://openvpn.net/signatures/

Here is the change log:

2008.01.23 -- Version 2.1_rc5

* Fixed Win2K TAP driver bug that was introduced by Vista fixes, incremented driver version to 9.4.

* Windows build system changes:

Incremented included OpenSSL version to openssl-0.9.7m.

Updated openssl.patch for openssl-0.9.7m and added some brief usage comments to the head of the patch.

Added build-pkcs11-helper.sh for building the pkcs11-helper library.

Integrated inclusion of pkcs11-helper into Windows build system.

Upgraded TAP build scripts to use WDK 6001.17121 (Windows 2008 Server pre-RTM).

* Windows installer changes:

Clean up the start menu folder.

Allow for a site-specific sample configuration file and keys to be included in a custom installer (see SAMPCONF macros in settings.in).

New icon (temporary).

* Added "forget-passwords" command to the management interface (Alon Bar-Lev).

* Added --management-signal option to signal SIGUSR1 when the management interface disconnects (Alon Bar-Lev).

* Modified command line and config file parser to allow quoted strings using single quotes ('') (Alon Bar-Lev).

* Use pkcs11-helper as external library, can be downloaded from
https://www.opensc-project.org/pkcs11-helper (Alon Bar-Lev).

* Fixed interim memory growth issue in TCP connect loop where "TCP: connect to %s failed, will try again in %d seconds: %s" is output.

* Fixed bug in epoll driver in event.c, where the lack of a handler for EPOLLHUP could cause 99% CPU usage.

* Defined ALLOW_NON_CBC_CIPHERS for people who don't want to use a CBC cipher for OpenVPN's data channel.

* Added PLUGIN_LIBDIR preprocessor string to prepend a default plugin directory to the dlopen search list when the user specifies the basename of the plugin only (Marius Tomaschewski).

* Rewrote extract_x509_field and modified COMMON_NAME_CHAR_CLASS to allow forward slash characters ("/") in the X509 common name (Pavel Shramov).

* Allow OpenVPN to run completely unprivileged under Linux by allowing openvpn --mktun to be used with --user and --group to set the UID/GID of the tun device node. Also added --iproute option to allow an alternative command to be executed in place of the default iproute2 command (Alon Bar-Lev).

* Fixed --disable-iproute2 in ./configure to actually disable iproute2 usage (Alon Bar-Lev).

* Added --management-forget-disconnect option -- forget passwords when management session disconnects (Alon Bar-Lev).

James

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openvpn-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

#20 lore raw
In reply to Carsten Krüger
Quoted 9 lines · Carsten Krüger

Hello James,

Quoted 2 lines

Use ./domake-win to build OpenVPN on Windows (see comments as well in

That file didn't exist in rc5, I found it in rc4.

The domake script exists in the subversion repository:

http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn

however I see that it was not making it into the tarball via make dist. I've committed a change that will fix this: make dist will now build a tarball with all of the subversion files + the usual "autoreconf -i -v" generated files.

James

#23 lore raw
In reply to James Yonan

Trying to build the Fedora package for rc6, I'm getting an error from %check, which basically does this:

  ./openvpn --config sample-config-files/loopback-client &
  ./openvpn --config sample-config-files/loopback-server
  wait

I'm getting the following error:

Thu Jan 24 14:15:33 2008 /sbin/ip addr flush dev null
Device "null" does not exist.
Thu Jan 24 14:15:33 2008 Linux ip flush failed: shell command exited with error status: 255

Full build log here:

http://koji.fedoraproject.org/koji/getfile?taskID=370966&name=build.log

Steve

Signature · 3 lines
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: [email protected]...             http://www.kspei.com/
Phone: (618)624-4440               Mobile: (618)567-7320
#24 lore raw

Thanks!
I was not aware of the null tun.
The following should fix the problem.

-r 2677:2679 https://svn.openvpn.net/projects/openvpn/contrib/alon/BETA21-userpriv-fixups

Alon.

Quoted 23 lines · Steven Pritchard

Trying to build the Fedora package for rc6, I'm getting an error from %check, which basically does this:

  ./openvpn --config sample-config-files/loopback-client &
  ./openvpn --config sample-config-files/loopback-server
  wait

I'm getting the following error:

Thu Jan 24 14:15:33 2008 /sbin/ip addr flush dev null
Device "null" does not exist.
Thu Jan 24 14:15:33 2008 Linux ip flush failed: shell command exited with error status: 255

Full build log here:

http://koji.fedoraproject.org/koji/getfile?taskID=370966&name=build.log

Steve
--
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: [email protected]... http://www.kspei.com/
Phone: (618)624-4440 Mobile: (618)567-7320

Quoted 9 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

tun.c +10 -7
Index: openvpn/tun.c
===================================================================
@@ -1221,17 +1221,20 @@
   if (tt)
     {
 #ifdef CONFIG_FEATURE_IPROUTE
-	char command_line[256];
-	/*
-	 * Flush IP configuration for the device
-	 */
-	openvpn_snprintf (command_line, sizeof (command_line),
+	if (tt->type != DEV_TYPE_NULL)
+	  {
+	    char command_line[256];
+	    /*
+	     * Flush IP configuration for the device
+	     */
+	    openvpn_snprintf (command_line, sizeof (command_line),
 			  "%s addr flush dev %s",
 			  iproute_path,
 			  tt->actual_name
 			  );
-	msg (M_INFO, "%s", command_line);
-	system_check (command_line, NULL, S_FATAL, "Linux ip flush failed");
+	    msg (M_INFO, "%s", command_line);
+	    system_check (command_line, NULL, S_FATAL, "Linux ip flush failed");
+	  }
 #endif
       close_tun_generic (tt);
       free (tt);
#25 lore raw

Well...
From: http://bugs.gentoo.org/show_bug.cgi?id=207320, found out that:
When executing:
ip addr flush dev XXXX
On unprivileged user, you get infinite loop of iproute2... Reported this to upstream.
So I had to workaround this using explicit del.

-r 2677:2682 https://svn.openvpn.net/projects/openvpn/contrib/alon/BETA21-userpriv-fixups

Quoted 4 lines · Alon Bar-Lev

Thanks!
I was not aware of the null tun.
The following should fix the problem.

Quoted 39 lines

-r 2677:2679 https://svn.openvpn.net/projects/openvpn/contrib/alon/BETA21-userpriv-fixups

Alon.

Quoted 32 lines · Steven Pritchard

Trying to build the Fedora package for rc6, I'm getting an error from %check, which basically does this:

  ./openvpn --config sample-config-files/loopback-client &
  ./openvpn --config sample-config-files/loopback-server
  wait

I'm getting the following error:

Thu Jan 24 14:15:33 2008 /sbin/ip addr flush dev null
Device "null" does not exist.
Thu Jan 24 14:15:33 2008 Linux ip flush failed: shell command exited with error status: 255

Full build log here:

http://koji.fedoraproject.org/koji/getfile?taskID=370966&name=build.log

Steve
--
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: [email protected]... http://www.kspei.com/
Phone: (618)624-4440 Mobile: (618)567-7320

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

tun.c +16 -9
Index: openvpn/tun.c
===================================================================
@@ -1221,17 +1221,24 @@
   if (tt)
     {
 #ifdef CONFIG_FEATURE_IPROUTE
-	char command_line[256];
-	/*
-	 * Flush IP configuration for the device
-	 */
-	openvpn_snprintf (command_line, sizeof (command_line),
-			  "%s addr flush dev %s",
+	if (tt->type != DEV_TYPE_NULL && tt->did_ifconfig)
+	  {
+	    char command_line[256];
+	    struct gc_arena gc = gc_new ();
+
+	    openvpn_snprintf (command_line, sizeof (command_line),
+			  "%s addr del dev %s local %s peer %s",
 			  iproute_path,
-			  tt->actual_name
+			  tt->actual_name,
+			  print_in_addr_t (tt->local, 0, &gc),
+			  print_in_addr_t (tt->remote_netmask, 0, &gc)
 			  );
-	msg (M_INFO, "%s", command_line);
-	system_check (command_line, NULL, S_FATAL, "Linux ip flush failed");
+
+	    msg (M_INFO, "%s", command_line);
+	    system_check (command_line, NULL, S_FATAL, "Linux ip addr del failed");
+
+	    gc_free (&gc);
+	  }
 #endif
       close_tun_generic (tt);
       free (tt);
#26 lore raw

iproute2 was fixed at latest git... No infinite loop anymore... But it will take much time until it pushed into users...

Quoted 56 lines · Alon Bar-Lev

Well...
From: http://bugs.gentoo.org/show_bug.cgi?id=207320, found out that:
When executing:
ip addr flush dev XXXX
On unprivileged user, you get infinite loop of iproute2... Reported this to upstream.
So I had to workaround this using explicit del.

-r 2677:2682 https://svn.openvpn.net/projects/openvpn/contrib/alon/BETA21-userpriv-fixups

Quoted 43 lines · Alon Bar-Lev

Thanks!
I was not aware of the null tun.
The following should fix the problem.

-r 2677:2679 https://svn.openvpn.net/projects/openvpn/contrib/alon/BETA21-userpriv-fixups

Alon.

Quoted 32 lines · Steven Pritchard

Trying to build the Fedora package for rc6, I'm getting an error from %check, which basically does this:

  ./openvpn --config sample-config-files/loopback-client &
  ./openvpn --config sample-config-files/loopback-server
  wait

I'm getting the following error:

Thu Jan 24 14:15:33 2008 /sbin/ip addr flush dev null
Device "null" does not exist.
Thu Jan 24 14:15:33 2008 Linux ip flush failed: shell command exited with error status: 255

Full build log here:

http://koji.fedoraproject.org/koji/getfile?taskID=370966&name=build.log

Steve
--
Steven Pritchard - K&S Pritchard Enterprises, Inc.
Email: [email protected]... http://www.kspei.com/
Phone: (618)624-4440 Mobile: (618)567-7320

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#3 lore raw

I was trying to compile PKCS#11 for about three hours and I didn't succeed. I rather compiled OpenVPN without PKCS#11 support. Maybe that some scripts (.bat) would help because foolish Windows users (like me) are used to compile programs just by clicking "Compile". Playing with commandline, editing makefiles etc. is sometimes very confusing and it really isn't necessary.

Alon Bar-Lev napsal(a):

Quoted 25 lines

Can anyone who uses PKCS#11 on Windows can acknowledge it works?

Thanks!

Quoted 8 lines · Alon Bar-Lev

All PKCS#11 users, please notice,
There was a major change in the parameters of PKCS#11, please refer to the HOWTO:
http://openvpn.net/howto.html#pkcs11

Regards,
Alon Bar-Lev.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openvpn-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#4 lore raw
Quoted 6 lines · Mirek Zajic

I was trying to compile PKCS#11 for about three hours and I didn't succeed. I rather compiled OpenVPN without PKCS#11 support. Maybe that some scripts (.bat) would help because foolish Windows users (like me) are used to compile programs just by clicking "Compile". Playing with commandline, editing makefiles etc. is sometimes very confusing and it really isn't necessary.

Why do you try to compile it?
You can use James binaries to test OpenVPN on Windows.

Alon.

#8 lore raw
In reply to Alon Bar-Lev

I would, but I cannot figure out how to map the old options to the current options. Previously, I used:

#basic token selection
pkcs11-providers bt_csp11.dll
pkcs11-slot-type "label"
pkcs11-slot "DavidLemley"

pkcs11-sign-mode sign

#select token keyset
pkcs11-id-type label
pkcs11-id "david_lemley_bestoken's ziggurat29 CA ID"

Can you explain the new options, or point me to where they are explained so I can reconfigure?

Quoted 34 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alon Bar-Lev
Sent: Sunday, January 27, 2008 12:58 AM
To: James Yonan
Cc: [email protected]; [email protected]
Subject: Re: [Openvpn-users] OpenVPN 2.1-rc5 released

Can anyone who uses PKCS#11 on Windows can acknowledge it works?

Thanks!

Quoted 2 lines · Alon Bar-Lev

All PKCS#11 users, please notice,
There was a major change in the parameters of PKCS#11,

please refer to

Quoted 4 lines

the HOWTO: http://openvpn.net/howto.html#pkcs11

Regards,
Alon Bar-Lev.

--------------------------------------------------------------
-----------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Openvpn-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

#5 lore raw
In reply to Alon Bar-Lev

Where can I find PKCS#11 Windows binaries? If you mean OpenVPN binaries, it is because I want to fix my NTLMv2 patch.

Alon Bar-Lev napsal(a):

Quoted 16 lines · Mirek Zajic
Quoted 8 lines

I was trying to compile PKCS#11 for about three hours and I didn't succeed. I rather compiled OpenVPN without PKCS#11 support. Maybe that some scripts (.bat) would help because foolish Windows users (like me) are used to compile programs just by clicking "Compile". Playing with commandline, editing makefiles etc. is sometimes very confusing and it really isn't necessary.

Why do you try to compile it?
You can use James binaries to test OpenVPN on Windows.

Alon.

#9 lore raw
In reply to Dave
Quoted 2 lines · Dave

Can you explain the new options, or point me to where they are explained so I can reconfigure?

There is a single ID now for PKCS#11 certificate, sync to all projects OpenVPN, OpensSSH, QCA, eCryptfs etc...
You use pkcs11-id 'id' (mind the single quote).
You can view id list using show-pkcs11-ids.

I updated the HOWTO:
http://openvpn.net/howto.html#pkcs11

So you don't need to specify any other option except of:
pkcs11-providers bt_csp11.dll
pkcs11-id 'serialized-id'

Alon

#6 lore raw
In reply to Mirek Zajic
Quoted 2 lines · Mirek Zajic

Where can I find PKCS#11 Windows binaries? If you mean OpenVPN binaries, it is because I want to fix my NTLMv2 patch.

Oh... Building OpenVPN for Windows is very difficult task now... I am working to simplify that...

Alon.

#10 lore raw
In reply to Alon Bar-Lev
Quoted 12 lines

Behalf Of Alon Bar-Lev

Quoted 2 lines · Dave

Can you explain the new options, or point me to where they are explained so I can reconfigure?

There is a single ID now for PKCS#11 certificate, sync to all projects OpenVPN, OpensSSH, QCA, eCryptfs etc... You use pkcs11-id 'id' (mind the single quote). You can view id list using show-pkcs11-ids.

Quoted 5 lines

I updated the HOWTO:
http://openvpn.net/howto.html#pkcs11

So you don't need to specify any other option except of:
pkcs11-providers bt_csp11.dll pkcs11-id 'serialized-id'

OK, I can report success on windows.

-Dave

#11 lore raw
Quoted 1 line · Dave

OK, I can report success on windows.

Thanks!
This is important!

#7 lore raw
In reply to Alon Bar-Lev

Hello Alon,

Quoted 2 lines

Oh... Building OpenVPN for Windows is very difficult task now... I am working to simplify that...

building pkcs11-helper with openssl support didn't work for me with mingw. the openssl symlinks don't work.

A server that produces nightly builds would be nice ...

------------------------------
what I done till now:

Download + Install
------------------

MinGW (c-compiler) + MSYS (make, etc) + Perl (alternativly Activestate Perl):
http://www.mingw.org/download.shtml

Man2html:
http://hydra.nac.uci.edu/indiv/ehood/man2html.html

OpenSSL 0.9.7 (need perl):
http://www.openssl.org/source/

LZO 2:
http://www.oberhumer.com/opensource/lzo/download/

pkcs11-helper (need man2html)
http://www.opensc-project.org/files/pkcs11-helper/

nullsoft scriptable install system (NSIS)
http://nsis.sourceforge.net/Download

Windows Driver Development Kit
http://www.microsoft.com/whdc/DevTools/ddk/default.mspx
J:\WINDDK\3790.1830\src\setup\devcon

Platform SDK (Windows Server 2003 R2 Platform SDK)
http://www.microsoft.com/downloads/details.aspx?FamilyId=484269E2-3B89-47E3-8EB7-1F2BE6D7123A&displaylang=en
Service.c
Service.H
(from Simple Service example)

Compile
-------
1. patch openssl
2. build openssl
3. build lzo
4. build pkcs11-helper with openssl engine
5. customize install-win32\settings.in
6. run domake-win

greetings
Carsten