---
schema_version: "1"
id: 8be10e9a508b0b93f5c18402e87cee7eb9e7c83f91dad96a07db2347963a2bbd
title: Validate Hostnames for Certificates
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_b2c_rn_validate_hostname_for_certs.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_rn_validate_hostname_for_certs.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4dfb5c385c300819d327d17c52a5dbb627d766fc50a6312e307f79c146d21c47
description: "B2C Commerce now validates the hostname in the HTTPS certificate for outgoing connections. Validating the hostname eliminates the chance that a connection is made to the wrong host. To identify failed verifications, search the logs with the keyword phrase: Host name verification failed. This validation can be disabled on specific requests using the new setHostNameVerification method on the HTTPClient script API."
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Validate Hostnames for Certificates

B2C Commerce now validates the hostname in the HTTPS certificate for outgoing connections. Validating the hostname eliminates the chance that a connection is made to the wrong host. To identify failed verifications, search the logs with the keyword phrase: Host name verification failed. This validation can be disabled on specific requests using the new `setHostNameVerification` method on the HTTPClient script API.