Web3.js limits on custom DNS resolvers and TLS validation
Goal Establish a secure HTTPS RPC connection from Node.js to a remote Ethereum node while accounting for self-signed or expired certificates and DNS resolution failures. Current behavior Web3.js delegates HTTP requests to the host environment's HTTP client (fetch in browsers, http/https in Node). When the RPC endpoint uses HTTPS, Node's TLS layer validates t