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:

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.
