Set accepted CA list and ignore SSL errors with chai-http
问题 I'm trying to write unit tests for my node code with chai/chai-http. Everything was working fine until I switched my server to an HTTPS server, but because my certificate is signed by an internal company root and the common name of the certificate I'm using doesn't match localhost, chai is throwing an error on my request. I'd like to do the following: Ignore SSL errors related to domain name verification. Set the list of CAs to check against. If this cannot be done, I'd be fine with just