@ -205,8 +205,8 @@ exports.checkServerIdentity = function checkServerIdentity(host, cert) {
if (!valid) {
var err = new Error(
util.format('Hostname/IP doesn\'t match certificate\'s altnames: %j',
reason));
err.reason = reason;
err.host = host;
err.cert = cert;