When setting up custom domains for Salesforce Commerce Cloud Direct-to-Customer Lightning Web Runtime (LWR) sites, you may encounter errors related to single domain CDN (Content Delivery Network) certificates. LWR Commerce sites require a Salesforce CDN with a single domain certificate, which has specific rules about how it can be associated with sites and custom URLs.
This article documents the most common error scenarios and their resolutions.
When a user tries to create or update a custom URL for a Commerce site, the following error occurs:
"You can only associate this site with a single certificate for content delivery network (CDN) domain. Make sure it's associated with the right domain and that your custom domain has completed provisioning, then try again."
When a user tries to associate a new custom URL or edit an existing URL for a Commerce site using the same single domain certificate already associated with a non-Commerce site, the following error occurs:
"You've already associated a site with this single certificate for content delivery network (CDN) domain."
When a user tries to associate a new custom URL or edit an existing URL for a Non-Commerce site using a single domain certificate already associated with a Commerce site, the following error occurs:
"You can't associate a non-Commerce site with this domain, because you've already associated a Commerce site with it."
When a user tries to delete a custom URL with a single domain certificate that is associated with an active B2C site, the following error occurs:
"Assign this site to another single certificate for content delivery network (CDN) custom domain before deleting the existing certificate."
When a user tries to edit the site of a custom URL with a single domain certificate associated with an active B2C site, the following error occurs:
"Assign this site to another single certificate for content delivery network (CDN) custom domain before deleting the existing certificate."
When a user tries to activate a B2C store without a custom URL using a single domain certificate, the following error occurs:
"Activate this site with a single certificate content network delivery (CDN) custom domain."
When a user tries to change the HTTPS option of a single domain certificate while a B2C Commerce site is using it, the following error occurs:
"You can't change the single certificate delivery network (CDN) to another HTTPS option, because it's being used by a site that only supports a single certificate content delivery network (CDN)."
For all errors in this article, refer to the Salesforce CDN documentation in Additional Resources for setup prerequisites and configuration steps. Below are the specific resolutions for each error scenario.
Use the Salesforce CDN with a single domain certificate for Commerce sites. Ensure your custom domain has completed provisioning before associating it with the site.
Remove the existing non-Commerce site associated with this single domain certificate, or create a new domain specifically for the Commerce site.
Remove the existing Commerce site association from this domain, or create a new domain for the Non-Commerce site.
Associate the B2C site with another single domain certificate custom URL before deleting or editing the existing one.
Associate a single domain certificate custom URL with the B2C store before activating it.
Disassociate the single domain certificate from the B2C Commerce site before changing its HTTPS option.
000396241

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.