From 9b5b6d6099917c8d0d4ad81f64e16b9b8d294661 Mon Sep 17 00:00:00 2001 From: mtghr <34816536+mtghr@users.noreply.github.com> Date: Sat, 29 Jun 2019 15:40:11 -0400 Subject: [PATCH] Update {$mac}.cfg (#4061) * Update {$mac}.cfg Polycom will not support wild card cert only if you disable strictCertCommonNameValidation also polycom is missing many root certs so we need an option to push them via the template bot stuff was tested by me in production and its working fine * Use isset --- resources/templates/provision/polycom/5.x/{$mac}.cfg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/templates/provision/polycom/5.x/{$mac}.cfg b/resources/templates/provision/polycom/5.x/{$mac}.cfg index bc6b687986..0ffbb41283 100755 --- a/resources/templates/provision/polycom/5.x/{$mac}.cfg +++ b/resources/templates/provision/polycom/5.x/{$mac}.cfg @@ -56,6 +56,9 @@ {if isset($row.register_expires)}reg.{$row.line_number}.server.2.expires="{$row.register_expires}"{else}reg.{$row.line_number}.server.2.expires="{$row.register_expires}"{/if} {/foreach} + + {if isset($polycom_cert_validation)}sec.TLS.SIP.strictCertCommonNameValidation="{$polycom_cert_validation}"{/if} + {if isset($polycom_root_cert)}sec.TLS.customCaCert.5="{$polycom_root_cert}"{/if} />