PcheckServerIdentity
Bun

property

tls.ConnectionOptions.checkServerIdentity

checkServerIdentity?: (hostname: string, cert: PeerCertificate) => undefined | Error