You are not logged in.

#1 2013-01-17 14:47:04

dohko
Member
Registered: 2011-09-24
Posts: 19

[solved] openvpn: Cannot load certificate file

I'm not sure what's going on here, I've never dealt with vpns before. My workplace sent me a .zip with the openvpn configuration and several keys and certificates. I thought it was as easy to get going as typing:

$ sudo openvpn --config vpn-remote.ovpn

The output I get is:

dohko@lenovo:~|⇒  sudo openvpn --config vpn-remote.ovpn
Thu Jan 17 08:27:23 2013 OpenVPN 2.2.2 x86_64-unknown-linux-gnu [SSL] [LZO2] [EPOLL] [eurephia] built on Aug 18 2012
Thu Jan 17 08:27:23 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Jan 17 08:27:23 2013 Cannot load certificate file mmorales.pem: 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
Thu Jan 17 08:27:23 2013 Exiting

Am I missing something? Thanks.

Last edited by dohko (2013-01-17 15:06:47)

Offline

#2 2013-01-17 14:58:08

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 180
Website

Re: [solved] openvpn: Cannot load certificate file

you have to place the key and cert files in a directory, e.g. in your home, and then adjust the path to these files in the vpn-remote.ovpn file.

that should be all.

Offline

#3 2013-01-17 15:06:32

dohko
Member
Registered: 2011-09-24
Posts: 19

Re: [solved] openvpn: Cannot load certificate file

That was it, I was not running the file according to the path established on the configuration, thanks.

Offline

Board footer

Powered by FluxBB