docs: def create_ip_cert_links(ssl_dir, custom_hostname_link=None):
      """Create symlinks for SAN records
  
      :param ssl_dir: str Directory to create symlinks in
      :param custom_hostname_link: str Additional link to be created
      """
      hostname = get_hostname(unit_get('private-address'))
      hostname_cert = os.path.join(
          ssl_dir,
          'cert_{}'.format(hostname))
      hostname_key = os.path.join(
          ssl_dir,
          'key_{}'.format(hostname))
      # Add links to hostname cert, used if os-hostname vars not set
      for net_type in [INTERNAL, ADMIN, PUBLIC]:
          try:
              addr = resolve_address(endpoint_type=net_type)
              cert = os.path.join(ssl_dir, 'cert_{}'.format(addr))
              key = os.path.join(ssl_dir, 'key_{}'.format(addr))
              if os.path.isfile(hostname_cert) and not os.path.isfile(cert):
                  os.symlink(hostname_cert, cert)
                  os.symlink(hostname_key, key)
          except NoNetworkBinding:
              log("Skipping creating cert symlink for ip in {} space, no "
                  "local address found".format(net_type), WARNING)
      if custom_hostname_link:
          custom_cert = os.path.join(
              ssl_dir,
              'cert_{}'.format(custom_hostname_link))
          custom_key = os.path.join(
              ssl_dir,
              'key_{}'.format(custom_hostname_link))
          if os.path.isfile(hostname_cert) and not os.path.isfile(custom_cert):
              os.symlink(hostname_cert, custom_cert)
              os.symlink(hostname_key, custom_key)