certificates renewed automatically but when I access openvpn web UI, I get cert error. I have created pre and post hook script but "post hook script not executing (I think) with certbot renew" and it gives following error (which I have added in output section).
When I run these script manually I can resolve cert error on openvpn web UI. Is there a way to automate renewal process ?
Contents of post-hook script :
#!/bin/bash
sudo /usr/local/openvpn_as/scripts/sacli start
My domain is: my-vpn-domain
I ran this command: certbot renew, certbot renew --dry-run , certbot certificates
It produced this output:
ERROR: --sock parameter ('/usr/local/openvpn_as/etc/sock/sagent.localroot', '/usr/local/openvpn_as/etc/sock/sagent') doesn't point to active socket: util/options:501,sagent/sacli:548,sagent/sacli:329,:1,sagent/sagent_entry:62,sagent/sacli:1456,util/options:523,internet/base:1283,internet/base:1292,internet/base:913,util/options:501,sagent/sacli:548,sagent/sacli:329,util/error:105,util/error:86 2 ERROR: --sock parameter ('/usr/local/openvpn_as/etc/sock/sagent.localroot', '/usr/local/openvpn_as/etc/sock/sagent') doesn't point to active socket: util/options:501,sagent/sacli:548,sagent/sacli:329,:1,sagent/sagent_entry:62,sagent/sacli:1456,util/options:523,internet/base:1283,internet/base:1292,internet/base:913,util/options:501,sagent/sacli:548,sagent/sacli:329,util/error:105,util/error:86 3 ERROR: --sock parameter ('/usr/local/openvpn_as/etc/sock/sagent.localroot', '/usr/local/openvpn_as/etc/sock/sagent') doesn't point to active socket: util/options:501,sagent/sacli:548,sagent/sacli:329,:1,sagent/sagent_entry:62,sagent/sacli:1456,util/options:523,internet/base:1283,internet/base:1292,internet/base:913,util/options:501,sagent/sacli:548,sagent/sacli:329,util/error:105,util/error:86
My web server is (include version): Openvpn 2.11.0
The operating system my web server runs on is (include version): Ubuntu 18:04
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is : 1.29.0