I have an OpenVPN server running CentOS 6, and it's running, and I have RSA-keys made and sent out to the client. Yet, when I try to connect the client to the server, it gives a couple of errors, including "process started and then immediately exited, or when I try to directly connect via the IP address, it gives me a timed out error. I checked the logs on the client, and these two separate events showed up.
Options error: Unrecognized option or missing parameter(s) in stdin:42: 172.250.0.35 (2.1.1oOAS)
WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Thu Jun 13 12:38:01 2013 NOTE: OpenVPNAS 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu Jun 13 12:38:01 2013 MANAGEMENT: Client disconnected
Thu Jun 13 12:38:01 2013 Cannot load inline certificate file: error:0906D06C:PEM routines:PEM_read_bio:no start line
I've gone over the key configuration a dozen times, and remade the keys just in case they were wrong. Is my client-configuration messed up, or it something with the server?
#client.opvn#
dev tun
proto udp
remote x.x.x.x 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 3
#server.conf#
port 1194
proto udp
dev tun
ca /etc/openvpn/easy-rsa/ca.crt
cert /etc/openvpn/easy-rsa/server.crt
key /etc/openvpn/easy-rsa/server.key
dh /etc/openvpn/easy-rsa/dh2048.pem
client-cert-not-required
username-as-common-name
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
persist-key
persist-tun
/var/log/messages
verb 3