# Postman trusts a certificate with CN different from the host name in the URL

**URL:** <https://community.postman.com/t/postman-trusts-a-certificate-with-cn-different-from-the-host-name-in-the-url/31527>\
**Category:** Help Hub\
**Tags:** ssl, aws, curl, host\
**Created:** [January 13, 2022, 2:35pm UTC](https://community.postman.com/t/postman-trusts-a-certificate-with-cn-different-from-the-host-name-in-the-url/31527 "2022-01-13T14:35:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineshsy](https://avatars.discourse-cdn.com/v4/letter/v/e19adc/32.png) [@vineshsy](https://community.postman.com/u/vineshsy)\
**Post date:** [January 13, 2022, 2:35pm UTC](https://community.postman.com/t/postman-trusts-a-certificate-with-cn-different-from-the-host-name-in-the-url/31527/1 "2022-01-13T14:35:56Z")

</div>

_My question_:

The request which I am trying to execute is a presigned URL of an AWS S3 PUT request. The host name in this pre-signed URL (\<customdomain\>.com) points to the original host name of the presigned URL (\<bucketname\>.s3.\<aws-region\>.amazonaws.com) as a CNAME record in Route53.  
I add this original host name as a “host” header parameter in the request. The SSL verification setting in postman is turned ON when the request is sent. The request gets executed successfully. But when I execute the cURL request done by the postman in a command prompt, the request fails with an error stating “SSL peer certificate or SSH remote key was not OK.”. I am wondering, how does the Postman trusts a certificate which has a different CN than the host name of the request being executed.
