]> PHS Git Server - phs-api.git/commitdiff
Adding logging for revoke to fix it.
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 15:14:45 +0000 (10:14 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 15:14:45 +0000 (10:14 -0500)
src/controllers/vpn.controller.js

index 8d4bb0ad98fee6aef12a11c2cb9fb99621a95668..d672c9feb61d489acd4fae506323faff11751c8d 100644 (file)
@@ -112,8 +112,8 @@ module.exports = {
     conn.on( 'ready', () => {
       const commands = [
         `cd /etc/openvpn/easy-rsa`,
-        `./easyrsa --batch revoke ${ clientName }`,
-        `./easyrsa gen-crl`,
+        `sudo ./easyrsa --batch revoke ${ clientName }`,
+        `sudo ./easyrsa gen-crl`,
         `cp pki/crl.pem /etc/openvpn/crl.pem`,
         `rm -rf /home/charles/clients/${ clientName }.ovpn`,
         `rm -f /etc/openvpn/ccd/${ clientName }`,