Message-ID: <35f70db10808080726s42b672eja344ef7557bf0e24@...278...> Date: Fri, 8 Aug 2008 16:26:47 +0200 From: "Ross Cameron" Sender: abalour@...277... In-Reply-To: <200808081133.m78BXp4S030182@...1119...> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_35903_26649181.1218205607917" References: <200808081133.m78BXp4S030182@...1119...> Subject: Re: [Openvpn-devel] OpenVPN and OpenSSL compatibility Reply-To: ross.cameron@...1049... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jos Vos Cc: openvpn-devel@lists.sourceforge.net ------=_Part_35903_26649181.1218205607917 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline What Linux kernel and Glibc version's are you running on this box? Why not statically compile the latest version of OpenVPN+OpenSSL together???? Regards,... Ross Cameron On Fri, Aug 8, 2008 at 1:33 PM, Jos Vos wrote: > Hi, > > I'm trying to "port" OpenVPN to a rather old Linux system (for > certain reasons...). I tried both 2.0.9 and 2.1_rc9. What I found: > > Compiling works ok for both versions (after a few trivial compiler > compatibility fixes). > > But when testing a loopback connection with the loopback-{client,server} > sample config files, this works ok for 2.0.9, but it fails for 2.1rc9 and > the error I get is "could not extract Common Name from X509 subject": > > Fri Aug 8 10:33:40 2008 TLS: Initial packet from 127.0.0.1:56975, > sid=2ca3e519 1141a566 > Fri Aug 8 10:33:40 2008 TLS: Initial packet from 127.0.0.1:56974, > sid=ec182881 010bc533 > Fri Aug 8 10:33:40 2008 VERIFY OK: depth=1, > /C=KG/ST=NA/L=BISHKEK/O=OpenVPN-TEST/Email=me@...430... > Fri Aug 8 10:33:40 2008 VERIFY ERROR: could not extract Common Name from > X509 subject string > ('/C=KG/ST=NA/O=OpenVPN-TEST/CN=Test-Server/Email=me@...430...') -- > note that the Common Name length is limited to 64 characters > Fri Aug 8 10:33:40 2008 TLS_ERROR: BIO read tls_read_plaintext error: > error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify > failed > Fri Aug 8 10:33:40 2008 TLS Error: TLS object -> incoming plaintext read > error > Fri Aug 8 10:33:40 2008 TLS Error: TLS handshake failed > Fri Aug 8 10:33:40 2008 TCP/UDP: Closing socket > Fri Aug 8 10:33:40 2008 Closing TUN/TAP interface > > Looking at the code (ssl.c, verify_callback()) I see that in the 2.0.9 > version the code is somewhat different and that no error checking is > done after the extract_x509_field() call. > > The OpenSSL version used on the old system is 0.9.6b. Does this mean > that OpenVPN is not compatible with OpenSSL 0.9.6b and that I also > should not use 2.0.9 with that version (although at first sight the > test does not show any problems)? Or should I look somewhere else? > > Thanks for any suggestion to solve this, > > -- > -- Jos Vos > -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 > -- Amsterdam, The Netherlands | Fax: +31 20 6948204 > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel > ------=_Part_35903_26649181.1218205607917 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
What Linux kernel and Glibc version's are you running on this box?

Why not statically compile the latest version of OpenVPN+OpenSSL together????

Regards,...
Ross Cameron

On Fri, Aug 8, 2008 at 1:33 PM, Jos Vos <jos@...1120...> wrote:
Hi,

I'm trying to "port" OpenVPN to a rather old Linux system (for
certain reasons...).  I tried both 2.0.9 and 2.1_rc9.  What I found:

Compiling works ok for both versions (after a few trivial compiler
compatibility fixes).

But when testing a loopback connection with the loopback-{client,server}
sample config files, this works ok for 2.0.9, but it fails for 2.1rc9 and
the error I get is "could not extract Common Name from X509 subject":

Fri Aug  8 10:33:40 2008 TLS: Initial packet from 127.0.0.1:56975, sid=2ca3e519 1141a566
Fri Aug  8 10:33:40 2008 TLS: Initial packet from 127.0.0.1:56974, sid=ec182881 010bc533
Fri Aug  8 10:33:40 2008 VERIFY OK: depth=1, /C=KG/ST=NA/L=BISHKEK/O=OpenVPN-TEST/Email=me@...430...
Fri Aug  8 10:33:40 2008 VERIFY ERROR: could not extract Common Name from X509 subject string ('/C=KG/ST=NA/O=OpenVPN-TEST/CN=Test-Server/Email=me@...430...') -- note that the Common Name length is limited to 64 characters
Fri Aug  8 10:33:40 2008 TLS_ERROR: BIO read tls_read_plaintext error: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Fri Aug  8 10:33:40 2008 TLS Error: TLS object -> incoming plaintext read error
Fri Aug  8 10:33:40 2008 TLS Error: TLS handshake failed
Fri Aug  8 10:33:40 2008 TCP/UDP: Closing socket
Fri Aug  8 10:33:40 2008 Closing TUN/TAP interface

Looking at the code (ssl.c, verify_callback()) I see that in the 2.0.9
version the code is somewhat different and that no error checking is
done after the extract_x509_field() call.

The OpenSSL version used on the old system is 0.9.6b.  Does this mean
that OpenVPN is not compatible with OpenSSL 0.9.6b and that I also
should not use 2.0.9 with that version (although at first sight the
test does not show any problems)?  Or should I look somewhere else?

Thanks for any suggestion to solve this,

--
--    Jos Vos <jos@...1120...>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

------=_Part_35903_26649181.1218205607917--