henkdev
Hi I'm running centOS 5.4 that worked like charm but suddenly stopped working.
I've changed nothing on the server but it might have had a reboot.
I've got the following error in my openvpn.log:
OpenVPN 2.1.4 x86_64-unknown-linux-gnu [SSL] [LZO2] [EPOLL] built on Jun 9 2013
Wed Nov 27 00:23:31 2013 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Wed Nov 27 00:23:31 2013 Diffie-Hellman initialized with 1024 bit key
Wed Nov 27 00:23:31 2013 Cannot load certificate file etc/openvpn/keys/server.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
Wed Nov 27 00:23:31 2013 Exiting
my server.conf file looks like this:
local 95.157.211.171
port 1194
;proto tcp
proto udp
;dev tap
dev tun
;dev-node MyTap
ca etc/openvpn/keys/ca.crt
cert etc/openvpn/keys/server.crt
key etc/openvpn/keys/server.key # This file should be kept secret
dh /etc/openvpn/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;push "route 192.168.2.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
client-config-dir clients
ccd-exclusive
route 10.8.1.0 255.255.255.0
route 10.8.2.0 255.255.255.0
route 10.8.3.0 255.255.255.0
;learn-address ./script
push "redirect-gateway"
;push "dhcp-option DNS 10.8.0.1"
;push "dhcp-option WINS 10.8.0.1"
;client-to-client
;duplicate-cn
keepalive 10 120
;tls-auth ta.key 0 # This file is secret
;cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
log-append /var/log/openvpn.log
verb 3
;mute 20
A friend of mine told me that it could have something to do with selinux
I must say that i'm not very experienced with using openvpn and centos. So i hope that you can help me.