I've installed the contrib following Wiki directions, over a previously configurated openvpn-bridge.Trying to connect via OpenVPN GUI I experienced client-side a connection error. Looking at logs on server I can find:
Thu Feb 15 23:50:18 2024 192.168.35.100:64491 TLS Error: Auth Username/Password was not provided by peer
Thu Feb 15 23:50:18 2024 192.168.35.100:64491 TLS Error: TLS handshake failed
Thu Feb 15 23:50:18 2024 192.168.35.100:64491 SIGUSR1[soft,tls-error] received, client-instance restarting
username and password are required instead of certificate and passwordLooking at the conf file in /etc/openvpn/routed I can find this row:plugin /usr/lib64/openvpn/plugins/openvpn-plugin-auth-pam.so login
As test, disabling the plugin commenting the line and restarting openvpn service I can connect correctly.
Is it possible to configure it via DB ?
Authentication CrtWithPass
This should be defaulted to authenticate with certificate and password.
This is the configuration in DB:
openvpn-routed=service
Cipher=AES-128-CBC
Compression=disabled
CrlUrl=http://localhost:940/phpki/index.php?stage=dl_crl_pem=
HMAC=SHA256
ManagementPassword=NonbVTTqZsRf1egl3p59LM7TNnM
Network=10.10.10.0/255.255.255.0
UDPPort=1195
access=public
status=enabled