[Watford] OpenVPN

Alan Secker alansecker0 at gmail.com
Wed Jan 29 19:29:20 UTC 2014


On 29/01/14 16:14, Alain Williams wrote:
> On Wed, Jan 29, 2014 at 11:00:52AM +0000, Alan Secker wrote:
>> I'm back on to trying to get this to work.
>>
>> On the server side, I think I have sorted out everything except for
>> the static address issue but I want to tackle that separately. My
>> current
>> problem stems from what happens when I try and start the client side.
>>
>> This is what happens:
>>
>> I prepared a client.conf file following someone's instructions (while
>> understanding little). When I tested it with:
>>
>> # openvpn /etc/openvpn/client.conf
>>
>> the following error was generated.
>>
>> Options error: If you use one of --cert or --key, you must use them both
>>
>> A comment-stripped copy of the client.conf file, looks like this:
>>
>> ##########################################################
>> # Customised Sample client-side OpenVPN 2.0 config file #
>> # based on Vincent Danen's article in techrepublic blog #
>> # with comments removed                                 #
>> ##########################################################
>>
>> client
>> dev tun
>> proto udp
>> remote 10.8.0.0 1194
>> nobind
>> user nobody
>> group nobody
>> persist-key
>> persist-tun
>> ca ca.crt
>> cert netbook.crt
>> cert netbook.key
>
> The above line should read:
>
>      key netbook.key
>
>> comp-lzo
>> pull dhcp-options
>
> Regards
>

Thanks Alain,
That has moved the problem on a tad. The command now returns:

# openvpn /etc/openvpn/client.conf
Options error: --ca fails with 'ca.crt': No such file or directory
Options error: --cert fails with 'netbook.crt': No such file or directory
Options error: --key fails with 'netbook.key': No such file or directory
Options error: Please correct these errors.

The certificates are all in /etc/openvpn so I cannot see why they cannot 
be seen(?)






More information about the Watford mailing list