Hello.
I have a Ubuntu 18.04 server and webmin. I try to deploy an OpenVPN server through Webmin, but I can't because of a one unknown problem. This is my logs and configurations:
ERROR WHEN I TRY START ON WEBMIN:
Command Execution Error systemctl start openvpn@%s francisvpn.
ERROR WHEN I TRY START ON CONSOLE:
systemctl start openvpn@francisvpn
root@francis:~# systemctl status openvpn@francisvpn
● openvpn@francisvpn.service - OpenVPN connection to francisvpn
Loaded: loaded (/lib/systemd/system/openvpn@.service;
indirect; vendor preset
Active: activating (auto-restart) (Result: exit-code) since
Mon 2020-10-12 14
Docs: man:openvpn(8)
https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
https://community.openvpn.net/openvpn/wiki/HOWTO
Process: 31688 ExecStart=/usr/sbin/openvpn --daemon ovpn-
francisvpn --status /
Main PID: 31688 (code=exited, status=1/FAILURE)
Status: "Pre-connection initialization successful"
lines 1-9/9 (END)...skipping...
● openvpn@francisvpn.service - OpenVPN connection to francisvpn
Loaded: loaded (/lib/systemd/system/openvpn@.service;
indirect; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since
OPENVPN.LOG:
Mon Oct 12 14:05:03 2020 Exiting due to fatal error
Mon Oct 12 14:05:08 2020 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019
Mon Oct 12 14:05:08 2020 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08
Mon Oct 12 14:05:08 2020 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing c onflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Mon Oct 12 14:05:08 2020 OpenSSL: error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak
Mon Oct 12 14:05:08 2020 Cannot load certificate file keys/francisca/servidoresfrancis.crt
Mon Oct 12 14:05:08 2020 Exiting due to fatal error
SYSLOG:
Oct 12 14:15:09 francis systemd[1]: openvpn@\x25s.service: Service hold-off time over, scheduling restart.
Oct 12 14:15:09 francis systemd[1]: openvpn@\x25s.service: Scheduled restart job, restart counter is at 2944.
Oct 12 14:15:09 francis systemd[1]: Stopped OpenVPN connection to \x25s.
Oct 12 14:15:09 francis systemd[1]: Starting OpenVPN connection to \x25s...
Oct 12 14:15:09 francis ovpn-\x25s[4834]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/\x25s.conf
Oct 12 14:15:09 francis ovpn-\x25s[4834]: Use --help for more information.
Oct 12 14:15:09 francis systemd[1]: openvpn@\x25s.service: Main process exited, code=exited, status=1/FAILURE
Oct 12 14:15:09 francis systemd[1]: openvpn@\x25s.service: Failed with result 'exit-code'.
Oct 12 14:15:09 francis systemd[1]: Failed to start OpenVPN connection to \x25s.
SERVER OPENVPN CONFIGURATION:
root@francis:/etc/openvpn# cat francisvpn.conf
port 40368
proto udp
dev tun0
ca keys/francisca/ca.crt
cert keys/francisca/servidoresfrancis.crt
key keys/francisca/servidoresfrancis.key
dh keys/francisca/dh2048.pem
topology subnet
server 10.10.10.0 255.255.255.0
crl-verify keys/francisca/crl.pem
cipher AES-128-CBC
user nobody
group nogroup
status servers/francisvpn/logs/openvpn-status.log
log-append servers/francisvpn/logs/openvpn.log
verb 2
mute 20
max-clients 100
keepalive 10 120
client-config-dir /etc/openvpn/servers/francisvpn/ccd
comp-lzo
persist-key
persist-tun
ccd-exclusive
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
My IP router is: 192.168.1.1
What is the problem?
Thanks!!