web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Connect custom domain ...
Power Pages
Unanswered

Connect custom domain to powerpages

(1) ShareShare
ReportReport
Posted on by 117

I'm trying to connect a subdomain to a powerpages site.

What I did:

1. Generate key.pem and cert.pem

 

openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem​

 

2. Generate pfx from cert.pem and key.pem

 

openssl pkcs12 -export -in cert.pem -inkey key.pem -out output.pfx

 

 3. Intro admin.powerplatform, under the website, go to "Connect Custom Domain", upload the certificate, Next, entered the subdomain and I get "Custom Domain is mapped to an incorrect URL. Please map the site URL to the custom domain and retry."

More than 24 hours ago have added a CNAME record:

sweb_0-1702404983222.png

4. I press Next, it sais "Please review the selection and click on Next to add the custom domain name to this portal".

And if I press Next nothing happens, can't get past "Create SSL binding"

 

Have created the PFX using certbot.

 

sudo certbot certonly --manual --preferred-challenges dns -d subdomain.domain.com

 

 I added the TXT record and got:

 

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/subdomain.domain.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/subdomain.domain.com/privkey.pem

ls /etc/letsencrypt/live/subdomain.domain.com
cert.pem chain.pem fullchain.pem privkey.pem README

 

And to get the PFX:

 

openssl pkcs12 -export -out certificate.pfx -inkey privkey.pem -in fullchain.pem -certfile chain.pem

 

I have the PFX, I try to upload it under "Custom Certificates" and I get:

I am sure the password is correct.

sweb_0-1702411414175.png

 

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @sweb ,

    Make sure that the SSL certificate that you have fulfills the requirements described here - https://learn.microsoft.com/en-us/power-pages/admin/add-custom-domain. (especially Extended Key Usage and that it is signed by a trusted certificate authority).

     

     

  • PartyPeteDotCom Profile Picture
    3 on at

    I still have the error "Custom Domain is mapped to an incorrect URL. Please map the site URL to the custom domain and retry."

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 41

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 35 Most Valuable Professional

#3
rezarizvii Profile Picture

rezarizvii 28

Last 30 days Overall leaderboard