Sunday, May 2, 2010

OpenVPN error:0906D06C:PEM routines:PEM_read_bio:no start

SkyHi @ Sunday, May 02, 2010
Error:
>build-key.bat VPN-Client
Cannot load certificate file client.crt: error:0906D06C:PEM
routines:PEM_read_bio:no start
When I start the openvpn service at server I get the following error

Starting
openvpn: SIOCDELRT: No such process
&
I am getting this errorwhile running opnvpn client

Wed Apr 26 23:20:31 2006 us=69452
OpenVPN 2.0.7 Win32-MinGW [SSL] [LZO] built on Apr 12 2006
Wed Apr 26
23:20:36 2006 us=966358 WARNING: No server certificate verification
method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
WedApr 26 23:20:36 2006 us=970083 Cannot load certificate file client.crt:
error:0906D06C:PEM routines:PEM_read_bio:no start line:
error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
Wed
Apr 26 23:20:36 2006 us=971579 Exiting

Solution:I had exactly the same problem..
I resolved the client side issue, by
defining the 'client.crt' correctly.
i.e. I noticed that my
'client.crt' had 0 byte size.
Something was going wrong in the
Build..It was me ! I can't read !
An easily overlooked
instruction in the swert's howto is:
"Use "Client" as
"Common Name"
and "VPN" for "Organizational Unit
Name"."


REFERENCES
http://forums.contribs.org/index.php?topic=26632.0