2.25 Core 157 Services>OpenVPN web admin broken

On an upgraded 156 system with no OpenVPN defined, get an error when creating Certificate Authority. Similarly when adding a connection, same error, after which IPFire home page OpenVPN status online, but Services>OpenVPN shows stopped. Have attempted road warrior connection previously defined and not working. Additionally, attempting to delete defined connection gives error and connection still there.
Nothing in Logs>System Logs> OpenVPN.

Hi @ipcopmann

I think this may be related to this bug

https://bugzilla.ipfire.org/show_bug.cgi?id=12574

1 Like

What’s in the logs?

1 Like

You’ll have to point me in right direction. Which log files?
Did a grep -r “openvpn” /var/log
httpd and pakfire only subdirectories where anything found.
Thanks

The Apache log files please

/var/log/httpd/error_log
Had tried to create a road warrior connection named PS.
Connection is on Services>OpenVPN web page, but can’t delete. No PS pem file in certs directory.

-rw-r–r-- 1 root root 200 Jun 29 2020 server.conf

Using configuration from /var/ipfire/ovpn/openssl/ovpn.cnf
Unable to open /var/ipfire/ovpn/server.conf: Permission denied at /srv/web/ipfire/cgi-bin/ovpnmain.cgi line 260.
[Sun Jun 27 13:46:48.242640 2021] [cgid:error] [pid 17398:tid 133310592304704] [client 46.226.184.218:38250] End of script output before headers: ovpnmain.cgi, referer: https://1.2.3.4:444/
Using configuration from /var/ipfire/ovpn/openssl/ovpn.cnf
Can’t open /var/ipfire/ovpn/certs/PScert.pem for reading, No such file or directory
139300172092800:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:69:fopen(’/var/ipfire/ovpn/certs/PScert.pem’,‘r’)
139300172092800:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76:
unable to load certificate
Using configuration from /var/ipfire/ovpn/openssl/ovpn.cnf
Unable to open /var/ipfire/ovpn/server.conf: Permission denied at /srv/web/ipfire/cgi-bin/ovpnmain.cgi line 260.
[Sun Jun 27 13:46:54.632814 2021] [cgid:error] [pid 17398:tid 133310617482816] [client 46.226.184.218:38254] End of script output before headers: ovpnmain.cgi, referer: https://1.2.3.4:444/
Can’t open /var/ipfire/ovpn/certs/PScert.pem for reading, No such file or directory
130993307874688:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:69:fopen(’/var/ipfire/ovpn/certs/PScert.pem’,‘r’)
130993307874688:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76:
unable to load certificate
Using configuration from /var/ipfire/ovpn/openssl/ovpn.cnf
Can’t open /var/ipfire/ovpn/certs/PScert.pem for reading, No such file or directory
133713560098176:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:69:fopen(’/var/ipfire/ovpn/certs/PScert.pem’,‘r’)
133713560098176:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76:
unable to load certificate
Using configuration from /var/ipfire/ovpn/openssl/ovpn.cnf
Unable to open /var/ipfire/ovpn/server.conf: Permission denied at /srv/web/ipfire/cgi-bin/ovpnmain.cgi line 260.
[Sun Jun 27 13:47:28.050577 2021] [cgid:error] [pid 17398:tid 133310600697408] [client 46.226.184.218:38262] End of script output before headers: ovpnmain.cgi, referer: https://1.2.3.4:444/
Can’t open /var/ipfire/ovpn/certs/PScert.pem for reading, No such file or directory
125477475177856:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:69:fopen(’/var/ipfire/ovpn/certs/PScert.pem’,‘r’)
125477475177856:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76:
unable to load certificate

Could you please open a bug report with this and attach this log file?

1 Like