PauthorizationError
Bun

property

tls.TLSSocket.authorizationError

authorizationError: Error

Returns the reason why the peer's certificate was not been verified. This property is set only when tlsSocket.authorized === false.