OpenVPN and crl-verify option
Posted: Sat Feb 15, 2025 6:46 pm
Hello,
The case concerns: Gargoyle 1.14 and OpenVPN
If I understood correctly what happened, it works like this:
I remove one of the OpenVPN clients which causes two lines to be added to /etc/config/openvpn:
Then after restarting the OpenVPN server, the following lines are added to the /etc/openvpn/server.conf file:
And everything works fine, except I came across a problem of this type, that from one day to the next all my clients stopped connecting and the active connection stopped working. It turned out that the reason was an outdated file /etc/openvpn/crl.pem. The solution was to log into the router, and add and remove the client, which renewed the crl.pem file:
And finally I get to the heart of the problem:
If the server has been running for over half a year and there was no need to add clients, the crl.pem file becomes outdated from one day to the next and it is impossible to connect to the server.
The solution is probably to log into the router to add and remove the client from time to time (let's say every 4 months), but maybe this renewal of the crl.pem file can be organized somehow in cron?
Best regards,
Marcin
The case concerns: Gargoyle 1.14 and OpenVPN
If I understood correctly what happened, it works like this:
I remove one of the OpenVPN clients which causes two lines to be added to /etc/config/openvpn:
Code: Select all
option tls_verify '/usr/lib/gargoyle/ovpn-cn-check.sh /etc/openvpn/verified-userlist'
option crl_verify '/etc/openvpn/crl.pem'
Code: Select all
crl-verify /etc/openvpn/crl.pem
tls-verify "/usr/lib/gargoyle/ovpn-cn-check.sh /etc/openvpn/verified-userlist"
Code: Select all
Last Update: Feb 15 21:56:58 2025 GMT
Next Update: Aug 14 21:56:58 2025 GMT
If the server has been running for over half a year and there was no need to add clients, the crl.pem file becomes outdated from one day to the next and it is impossible to connect to the server.
The solution is probably to log into the router to add and remove the client from time to time (let's say every 4 months), but maybe this renewal of the crl.pem file can be organized somehow in cron?
Best regards,
Marcin