onBadCertificate property
Callback for VM clients when an SSL exception occurs due to an untrusted or unverifiable certificate.
Clients can support establishing an SSL connection despite this exception
by selectively returning true
for these options. For example, when
debugging with local, self-signed certificates, it can be helpful to
return true
from this method for all certificates.
Implementation
BadCertificateCallback onBadCertificate = (_, __, ___) => false;