allowBadCertificates function
Bad certificate handler that disables all certificate checks. DO NOT USE IN PRODUCTION! Can be used during development and testing to accept self-signed certificates, etc.
Implementation
bool allowBadCertificates(X509Certificate certificate, String host) => true;