Error while placing the order

Can you please guide us with the following error, as I am placing order the following error is received.

05/26/2025 09:21:35.471 WARNING [connection.py : (_match_hostname) : MainThread : 542] Certificate did not match expected hostname: api-hft.upstox.com. Certificate: {‘subject’: (((‘commonName’, ‘.amexgbt.iqd.cloud’),),), ‘issuer’: (((‘countryName’, ‘US’),), ((‘organizationName’, ‘Amazon’),), ((‘commonName’, ‘Amazon RSA 2048 M02’),)), ‘version’: 3, ‘serialNumber’: ‘09E36489F14C7B664C560FBDB8694B69’, ‘notBefore’: ‘Oct 11 00:00:00 2024 GMT’, ‘notAfter’: ‘Nov 10 23:59:59 2025 GMT’, ‘subjectAltName’: ((‘DNS’, '.amexgbt.iqd.cloud’),)}

05/26/2025 09:21:35.472 WARNING [connectionpool.py : (urlopen) : MainThread : 812] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(CertificateError(“hostname ‘api-hft.upstox.com’ doesn’t match ‘*.amexgbt.iqd.cloud’”))’: /v2/order/place

@ushnota.paul @Pradeep_Jaiswar @MohitGolecha @Ketan @Upstox

Kindly acknowledge and provide the response on this positively and lets make it a positive interactive community.

Hi @Maneesh_Chowla,

This is being checked. Will get back to you with an update soon, thanks.

Hi @Maneesh_Chowla, it seems the SSL/TLS certificate presented by the server does not match the domain you’re trying to reach.

  • Requested URL:
    https://api-hft.upstox.com
  • Certificate Presented For:
    *.amexgbt.iqd.cloud

As a result, the connection failed with an SSLError due to a hostname mismatch—the certificate’s domain does not match the requested hostname. Please ensure to serves the valid certificate.