function getCertErrorContent(error, fullUrl) {
  let content;
  const title = 'The connection is not private. ';
  let explain = 'There are error with the certfication of the site.';
  switch (error.code) {
    case 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY': {
      explain = 'The certfication of the site you are visiting is not issued by a known agency, '
        + 'It usually happenes when the cert is a self-signed one.</br>'
        + 'If you know and trust the site, you can run AnyProxy with option <strong>-ignore-unauthorized-ssl</strong> to continue.'

      break;
    }
    default: {
      explain = ''
      break;
    }
  }

  try {
    content = certPugFn({
      title: title,
      explain: explain,
      code: error.code
    });
  } catch (parseErro) {
    content = error.stack;
  }

  return content;
}
get error content for certification issues