# Defining if the requested server has ssl certificate

**URL:** <https://community.postman.com/t/defining-if-the-requested-server-has-ssl-certificate/31541>\
**Category:** Help Hub\
**Tags:** tests, ssl\
**Created:** [January 13, 2022, 8:45pm UTC](https://community.postman.com/t/defining-if-the-requested-server-has-ssl-certificate/31541 "2022-01-13T20:45:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![material-candidate-1](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@material-candidate-1](https://community.postman.com/u/material-candidate-1)\
**Post date:** [January 13, 2022, 8:45pm UTC](https://community.postman.com/t/defining-if-the-requested-server-has-ssl-certificate/31541/1 "2022-01-13T20:45:26Z")

</div>

**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?

 ![24fb6e2d-00b7-4752-8a18-ce0ad8336bc2](https://us1.discourse-cdn.com/getpostman/original/2X/0/036272fa6f2914c835f2c021fd0825bc4b37fff4.jpeg)
