This should throw an error:
{ ...
, SNICallback: function (domainname, cb) {
cb(null, { key: '...', cert: '...', ca: '...' });
}
}
Instead it succeeds and then the browser barfs.
I was live coding and couldn't figure out in the 30 seconds I just had to wrap my object in require('crypto').createSecureContext(...), so I just used http. :-(
If it had thrown an error it would have made the whole world a better place.