property
BunFetchRequestInitTLS.checkServerIdentity
checkServerIdentity?: (hostname: string, cert: PeerCertificate) => undefined | Error
Custom function to check the server identity. It runs after the certificate chain verifies. With rejectUnauthorized: false it still runs, but what it returns is ignored.
A request that passes its own function opens a connection of its own and closes it afterwards. To verify once per connection and reuse it, put the function on a Bun.FetchSession.