]> PHS Git Server - phs-api.git/commitdiff
Cleaning up the revoke client function and starting on the create client function...
authorcharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 01:16:43 +0000 (20:16 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Tue, 9 Sep 2025 01:16:43 +0000 (20:16 -0500)
src/controllers/vpn.controller.js

index 25d012770432d761ef52cef4342c34fa287ad6b6..5f6f8eb53445c50f1cf52b7979be65c79c1c3cc2 100644 (file)
@@ -58,7 +58,7 @@ module.exports = {
     conn.on( 'ready', () => {
       const commands = [
         `cd /etc/openvpn/easy-rsa`,
-        `./easyrsa build-client-full ${ clientName } nopass`,
+        `./easyrsa build-client-full ${ clientName } nopass --batch`,
         `mkdir -p /etc/openvpn/client-configs`,
         staticIp ? `echo "ifconfig-push ${ staticIp } 255.255.255.0" > /etc/openvpn/client-configs/${ clientName }.ccd` :
           'true', `/usr/share/easy-rsa/pkitool ${ clientName }`,