diff --git a/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/syncCerts.py b/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/syncCerts.py index 87632bda0..0427b2e7e 100755 --- a/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/syncCerts.py +++ b/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/syncCerts.py @@ -113,7 +113,7 @@ class Diff(SyncWithTarget): status[crt_list.frontend_id]['certs'][cert.cert_id] = { 'path': cert.path, 'local': cert.local, - 'remote': cert.local, + 'remote': cert.remote, } return status @@ -260,7 +260,7 @@ class Diff(SyncWithTarget): print(" " + repr(message)) for cert in crt_list['del']: - print(f" DEL: {cert['cert']}") + print(f"\n DEL: {cert['cert']}") for message in cert['messages']: print(" " + repr(message)) print() diff --git a/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf b/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf index 7301e83e8..48bcc629d 100644 --- a/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf +++ b/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf @@ -99,3 +99,4 @@ command:/usr/local/opnsense/scripts/OPNsense/HAProxy/syncCerts.py sync --output parameters: type:script_output message:Sync ssl certificates into HAProxy memory for all frontends +description:Sync ssl certificates changes into HAProxy memory