[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] TLS reconnection failed -> REASON


  • Subject: Re: [Openvpn-users] TLS reconnection failed -> REASON
  • From: Stefan Lüthje <stefan+list@xxxxxxxxxx>
  • Date: Sat, 11 Dec 2004 20:17:11 +0100 (CET)
  • Importance: Normal

Hello,

I wrote, that openvpn in client mode can not find its certificates. Now I
have started the openvpn with strace an see the following output:

root@catharina:openvpn# strace -f openvpn --config speedy.conf 2>&1 |
egrep "(chdir|client-luethje)"
chdir("/opt/private/sh-bin")            = 0
chdir("/opt/private/etc/openvpn")       = 0
chdir("/opt/private/bin")               = 0
chdir("/opt/private/etc/openvpn")       = 0
chdir("/opt/private/sbin")              = 0
chdir("/opt/private/etc/openvpn")       = 0
chdir("/usr/sbin")                      = 0
chdir("/opt/private/etc/openvpn")       = 0
chdir("/opt/private/sh-bin")            = 0
chdir("/opt/private/etc/openvpn")       = 0
chdir("/opt/private/bin")               = 0
chdir("/opt/private/etc/openvpn")       = 0
chdir("/opt/private/sbin")              = 0
chdir("/opt/private/etc/openvpn")       = 0
chdir("/usr/sbin")                      = 0
chdir("/opt/private/etc/openvpn")       = 0
open("vpn-client-luethje.crt", O_RDONLY) = 4
open("vpn-client-luethje.key", O_RDONLY) = 4
stat64("vpn-client-luethje.key", {st_mode=S_IFREG|0644, st_size=887, ...})
= 0
open("vpn-client-luethje.crt", O_RDONLY) = 4
chdir("/")                              = 0
open("vpn-client-luethje.crt", O_RDONLY) = -1 ENOENT (No such file or
directory)

I know, that I can sue the option --cd, but I want to give the config file
 linux and windows users, so I need the relative path.

I use openvpn version on debian unstable:

OpenVPN 2.0_beta19 i386-pc-linux [SSL] [LZO] [EPOLL] built on Dec  5 2004
Copyright (C) 2002-2004 James Yonan <jim@xxxxxxxxx>

Best Regards

        Stefan Luethje

> Hello,
>
> before I start openvpn daemon, I change into the directory /etc/openvpn.
The first connection is OK, everything works. But the reconnection ends
with the following message:
>
> Dec 10 01:33:46 catharina openvpn[24463]: Cannot load certificate file
vpn-client-luethje.crt: error:02001002:system library
> :fopen:No such file or directory: error:20074002:BIO
> routines:FILE_CTRL:system lib: error:140AD002:SSL routines:SSL_CTX_use_
certificate_file:system lib
>
> After a restart of the openvpn everything works fine again.
>
> Here the config file:
>
> dev tun
> remote my.remote.host
> pull
> tls-client
> key vpn-client.key
> cert vpn-client.crt
> ca ca.crt
> auth-user-pass ,y.passwd
> proto tcp-client
> comp-lzo
> keepalive 15 200
> verb 4
> daemon
>
>
>
> Best Regards
>
>         Stefan Luethje
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
>



Best Regards

        Stefan Luethje


____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users