Lines Matching refs:hostname
280 exports.checkServerIdentity = function checkServerIdentity(hostname, cert) {
286 hostname = '' + hostname;
304 hostname = unfqdn(hostname); // Remove trailing dot for error messages.
306 if (net.isIP(hostname)) {
307 valid = ArrayPrototypeIncludes(ips, canonicalizeIP(hostname));
309 reason = `IP: ${hostname} is not in the cert's list: ` +
312 const hostParts = splitHost(hostname);
319 `Host: ${hostname}. is not in the cert's altnames: ${altNames}`;
330 reason = `Host: ${hostname}. is not cert's CN: ${cn}`;
337 return new ERR_TLS_CERT_ALTNAME_INVALID(reason, hostname, cert);