Defining if the requested server has ssl certificate

How can I get the ssl certificate status capturing tls attributes of the network logs or Postman Sandbox libraries?

Hello Postman Community, I have an issue when writing the tests for Postman collection, one of the server’s has ssl certificate issues - in such a case it causes a problems in my tests unless I define how to get the status of the certificate, directly in the code, so I can handle such a use case in my tests.

I’ve tried checking out network response and found out that tls response has ‘authorization error: DEPTH_ZERO_SELF_SIGNED_CERT’ in this case. Is there any way to get this value in the Postman tests? Are there any Postman Sandbox libraries that can define problems with SSL of the request?