OpenVPN AS web interface does not work after upgrade to v. 2.9.1
Posted: Mon Jun 28, 2021 12:26 pm
On a Debian 10 (buster) machine I upgraded openvpn-as package from v. 2.8.8 to 2.9.1 but after that the OpenVPN web interface is not available any more.
The machine is using the following repository:
In /var/log/openvpnas.log the following error is logged:
private key validation error: [Errno 2] No such file or directory: '/usr/local/openvpn_as/etc/web-ssl/ca.key': svc/svc:675,sagent/websvc:331,sagent/websvc:248,sagent/websvc:428,pki/validcert:31,pki/validcert:28,util/valid:137,util/simplefile:25 (FileNotFoundError)
In ver. 2.8.8 my OpenVPN AS used SSL certificates in /usr/local/openvpn_as/etc/web-ssl (which still exists after the upgrade):
-rw-r--r-- 1 root root 1818 Jul 4 2017 ca.crt
-rw-r--r-- 1 root root 2920 Apr 21 2020 server.crt
-rw------- 1 root root 3243 Apr 21 2020 server.key
where
server.key is the certificate private key
server.crt is the signed certificate
ca.crt is the intermediate CA certificate (TERENA SSL CA 3)
It seems that after the upgrade OpenVPN AS is not using those files but expects different files which do not exist.
How to solve this issue?
-- rpr.
The machine is using the following repository:
Code: Select all
deb http://as-repository.openvpn.net/as/debian buster mainprivate key validation error: [Errno 2] No such file or directory: '/usr/local/openvpn_as/etc/web-ssl/ca.key': svc/svc:675,sagent/websvc:331,sagent/websvc:248,sagent/websvc:428,pki/validcert:31,pki/validcert:28,util/valid:137,util/simplefile:25 (FileNotFoundError)
In ver. 2.8.8 my OpenVPN AS used SSL certificates in /usr/local/openvpn_as/etc/web-ssl (which still exists after the upgrade):
-rw-r--r-- 1 root root 1818 Jul 4 2017 ca.crt
-rw-r--r-- 1 root root 2920 Apr 21 2020 server.crt
-rw------- 1 root root 3243 Apr 21 2020 server.key
where
server.key is the certificate private key
server.crt is the signed certificate
ca.crt is the intermediate CA certificate (TERENA SSL CA 3)
It seems that after the upgrade OpenVPN AS is not using those files but expects different files which do not exist.
How to solve this issue?
-- rpr.