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

Re: [Openvpn-users] Insufficient key material or header text not found found in file

  • Subject: Re: [Openvpn-users] Insufficient key material or header text not found found in file
  • From: "Tommy Butler" <tommy@xxxxxxxxxxxx>
  • Date: Mon, 22 Oct 2007 13:14:28 -0500

I'd like to thank everyone for all your help on this problem.
Uhm, anybody pick up on the sarcasm there?  Bah!  So much for getting help from the "community".

For the record, and for those who may come across the same problem in the future, the solution to my problem was to use this configuration on the client machines...

remote xxx.xxx.xxx.xxx # (ip is masked here)
proto udp
dev tun
ca ca.crt
cert foo.crt
key foo.key
ping-restart 60
ping 10
verb 4
mute 10

... and this configuration on the server:

port 1194
proto udp
dev tun
ca /etc/openvpn/ssl/keys/ca.crt
cert /etc/openvpn/ssl/keys/xxx.xxx.xxx.xxx.crt # (ip is masked here)
key /etc/openvpn/ssl/keys/xxx.xxx.xxx.xxx.key  # This file should be kept secret
dh /etc/openvpn/ssl/keys/dh1024.pem
ifconfig-pool-persist ipp.txt
keepalive 10 120
max-clients 100
user nobody
group nogroup
status /var/log/openvpn-status.log
verb 4
mute 10

Tommy Butler

On 10/4/07, Tommy Butler <tommy@xxxxxxxxxxxx> wrote:
Having a problem getting openvpn client to connect to my openvpn server.

When I try to connect I get an error.  My key file is attached, as I will not be using it and it is for demonstration purpoes only in order to verify amongst you all that the key is in fact legitimate and not malformed.  I used pkitool to set up dh, create the ca, the intermediate ca, and generate all keys for both server and clients as explained in the documentation.  However when I copy the keys, certs, and other files from the server over to my windows clients I then encounter errors when trying to start up openvpn.

Here is the error text I get (I thank you all in advance for any insight!)


Thu Oct 04 15:03:00 2007 us=54587 Insufficient key material or header text not f
ound found in file 'C:\Program Files\OpenVPN\ssl\keys\tommy.butler.key' (0/128/2
56 bytes found/min/max)
Thu Oct 04 15:03:00 2007 us=54758 Exiting
Thu Oct 04 15:03:00 2007 us=54813 Closing Win32 semaphore 'openvpn_netcmd'