Refactor to use $::clientcert as host name to be advertised