allowBadCertificates function

bool allowBadCertificates(
  1. X509Certificate certificate,
  2. String host
)

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;