I have installed OpenVPN v2.2.2 in a separate jail on a FreeNAS server, built a CA, server key, created the Diffie-Hellman parameters and a client key largely as described here:
http://unix-heaven.org/node/46. (I say largely as I found that if I had moved the server key, I could not create the client key so I moved all the keys at the end).
I then edited the server.conf file as I believe it should be.
When I try to start openvpn with
openvpn --config server.conf
I get the following output:
root@openvpn:/usr/local/etc/openvpn # openvpn --config server.conf
Tue Sep 17 21:50:33 2013 OpenVPN 2.2.2 i386-portbld-freebsd9.1 [SSL] [LZO2] [eur
ephia] built on Jul 16 2013
[color=#FF0000]openvpn: writing to routing socket: No such process [/color]
Tue Sep 17 21:50:33 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or hig
her to call user-defined scripts or executables
Tue Sep 17 21:50:33 2013 Diffie-Hellman initialized with 1024 bit key
Tue Sep 17 21:50:33 2013 [color=#FF0000]Cannot load certificate file /usr/local/etc/openvpn/key
s/lucijas.homeip.net.crt: error:0906D06C:PEM routines:PEM_read_bio:no start line
: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib [/color]
Tue Sep 17 21:50:33 2013 Exiting
I have not yet configured port forwarding on my modem to the VPN server. Could this be why the writing to routing socket gives an error?
Any ideas why either of these errors might be occuring? What should I be checking?
Thanks in advance!