Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Add a custom domain name
A custom domain can enhance your brand and help your customers more easily find your support resources. After you provision your website and acquire your domain name, you need an SSL certificate to set up a custom host name. When you purchase the SSL certificate, use the wizard to link your website to a custom domain. You can add only one custom domain name to a website.
Important
- You can add a custom domain name to a website only when the website is in production state. Learn more about website stages, in Power Pages lifecycle.
To learn about the roles required to perform this task, read Admin roles required for website administrative tasks.
Open the Power Platform admin center.
Under Resources, select Power Pages sites.
Select the site to which you want to add a custom domain. Select Manage from the main menu. A page opens with details about your site.
In the Site Details section, select Connect Custom Domain.
A side panel appears. In the Choose a SSL certificate section, select one of these options:
Upload a new certificate: Select this option to upload the .pfx file if you didn't upload it to the organization yet. Select the upload button under File to select the .pfx file. After selecting the file, enter the password for your SSL certificate in the Password field.
Use an existing certificate: Select this option to choose the correct certificate from the drop-down list.
Note
The SSL certificate must meet all the following requirements:
- Signed by a trusted certificate authority.
- Exported as a password-protected PFX file.
- Contains private key that's at least 2048 bits long.
- Contains all intermediate certificates in the certificate chain.
- Must be SHA2 enabled; SHA1 support is being removed from popular browsers.
- PFX file must be encrypted with TripleDES encryption. Power Pages doesn't support AES-256 encryption.
- Contains an Extended Key Usage for server authentication (OID = 1.3.6.1.5.5.7.3.1).
The steps to export SSL certificate as a password-protected PFX file might vary depending on your certificate provider. Check with your certificate provider for recommendation. For example, certain providers might suggest using OpenSSL 3rd party tool from OpenSSL or OpenSSL Binaries sites.
Select Next.
In the Choose hostname section, enter the CNAME you want in the Domain Name field (for example
www.contoso.com).Note
- You can have only one custom domain name for a website.
- To create a custom host name, you need to create a CNAME with your domain provider that points your domain to the URL of your website.
- If you just added a CNAME with your domain provider, it takes some time to propagate to all DNS servers. If the name isn't propagated and you add it here, the following error message appears: "Please add a CNAME record to this domain name. Retry after some time passes."
- The CNAME record used for custom domain configuration must be publicly resolvable. Power Pages can't validate DNS records that exist only in private or internal DNS zones, and will cause custom domain setup to fail.
- Before adding the custom domain, check that the CNAME resolves by using a public DNS tool (for example,
nslookupordig). If the record can't be resolved publicly, Power Pages can't validate it. - To successfully bind your custom domain, ensure there's no TXT record in your DNS named
asuid.{customDomain}. If such a record exists, delete it and try binding the domain again. For example, if your domain iswww.contoso.com, check for a TXT record namedasuid.www.contoso.com. If found, remove it before retrying the domain configuration.
Select Next.
This step is applicable for a Content Delivery Network or Web Application Firewall enabled site. In the Validate the domain section, copy the Record type, Record name, and the Record value and create a TXT record with your domain provider. For detailed instructions, see Add the TXT record for domain validation.
Select Next.
Review the information comparing the Custom host name and the SSL certificate, and then select Next to begin creating the SSL Binding.
You see the message Custom Domain name has been successfully configured. You can now go to {Custom Domain Name} to access this website.
Select Close.
Add the TXT record for domain validation
This step verifies you own the domain before Power Pages routes traffic through Azure Front Door.
What you'll need
From the Power Platform admin center, copy these values:
- Record type: TXT
- Record name: for example, _dnsauth.www
- Record value: for example, abc123def456...
Instructions for your DNS provider
General steps for any DNS provider:
- Sign in to your DNS management console.
- Find the option to add DNS records.
- Create a new TXT record with:
- Host/Name: The record name from admin center.
- Type: TXT
- Value/Content: The record value from admin center.
- Save the record.
Learn more in Create DNS records and zones using the Azure portal if you use Azure DNS.
Verify your TXT record
After adding the record, verify it's publicly visible:
Option 1: Command line
# Windows
nslookup -type=TXT _dnsauth.www.yourdomain.com
# Mac/Linux
dig TXT _dnsauth.www.yourdomain.com +short
Option 2: Online tools - MXToolbox TXT Lookup - Google Admin Toolbox
If the record appears, return to admin center and select Refresh.
Important
If you don't create the TXT record before it expires, Power Pages automatically regenerates a new validation token. Before creating the DNS record, always copy the current Record value from the admin center. Adding an expired token has no effect, and validation only succeeds against the currently active value.
When you add a TXT entry with your domain provider, it takes some time to propagate to all DNS servers. Select Refresh to validate the custom domain. When the information is validated, the Next button is activated.
Note
When you add a custom domain name for a Content Delivery Network enabled site, Power Pages uses Azure Front Door-managed TLS certificates to enforce HTTPS for custom domains. These certificates are created with a lifetime validity of six months and are auto-renewed 45 days prior to the expiry date.
Change current custom domain name
To change your existing custom domain name:
Open the Power Platform admin center.
Under Resources, select Power Pages sites.
Select the site for which you want to change the custom domain. Select Manage from the main menu. A page opens with details about your site.
In the Site Details section, select the pencil icon to the right of your custom URL.
A side panel appears.
- Select and delete the current assigned hostname.
- Select and delete the current SSL certificate.
- Select and delete the current SSL binding.
Follow the instructions outlined in Add a custom domain name to configure your new domain.
Renew or reissue SSL/TLS certificate for Power Pages
To renew or reissue an SSL/TLS certificate that covers your portal's custom domain name, follow these high-level steps.
Note
- Steps might vary slightly depending on your preferred Certificate Authority (CA). For the complete renewal process, refer to the CA website.
- If you already have your new certificate .PFX file, skip these four steps and follow the last two steps to upload the new certificate and binding.
STEP 1: Generate Certificate Signing Request (CSR).
To renew an SSL/TLS certificate, generate a new CSR.
Generate a new CSR when renewing your SSL/TLS certificate to create a new, unique key pair (public and private) for the renewed certificate.
STEP 2: Log on to your preferred Certificate Authority (CA) website and fill out the renewal form.
On the Expiring certificates page, next to the certificate that needs to be renewed, select Renew now.
A certificate doesn't appear on the Expiring Certificates page until 90 days before it expires.
STEP 3: Your CA issues the SSL/TLS certificate
Once approved, the CA issues and sends the renewed certificate to the certificate contact via email. You can also download the renewed certificate from the CA website.
STEP 4: Install your renewed SSL/TLS certificate (preferably on the machine from step 1 where you installed the CSR, which auto-associates the private key so that you can later export the .PFX file). While exporting the PFX file on Windows, just ensure that the export is a password-protected PFX file, encrypted using triple DES as shown in the following image:
👁 The Certificate Export Wizard with the triple DES Encryption information emphasized.
When you have the renewed (reissued) certificate .PFX file, select the edit icon (pencil icon) beside your custom domain in Power Portals admin center to replace your old certificate.
Upload your renewed certificate .pfx file by choosing New from the Edit Custom Domain pane.
After the upload, delete the existing binding with the old certificate and create a New binding as shown in the following image. Selecting New opens a popup where you can choose your preferred host name and your new certificate for this binding.
Legend:
- To delete the existing binding, select the ellipse, and then choose Delete.
- Select the + New button to add a new SSL certificate.
See also
Feedback
Was this page helpful?
