Can't enable Enforce HTTPS on a github.io project site: "The certificate does not exist yet" #212539
🏷️ Discussion TypeBug 💬 Feature/Topic AreaPages BodyMy Pages site https://geiserx.github.io/ePubLangMerger/ (repo https://github.com/GeiserX/ePubLangMerger) can't turn on Enforce HTTPS.
PUT /repos/GeiserX/ePubLangMerger/pages {"https_enforced": true} On 2026-11-07 I unpublished Pages, published it again and redeployed through the workflow. Two days later nothing has changed. My other github.io project sites have HTTPS enforced. This repository dates from 2016, so I think its certificate state is stuck on GitHub's side, and there's no self-service reset for a site without a custom domain. Could someone from the Pages team reset it? Or has anyone fixed this themselves? |
Replies: 3 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
This is a known edge-case in the GitHub Pages certificate daemon for older repositories (especially pre-2019 repos migrated from legacy branch builds to GitHub Actions). Here is why this occurs and the self-service workarounds that resolve it: Root CauseFor project sites ( However, the Pages backend internally checks the certificate issuance record associated with the account's root Pages namespace (
The API validation guard rejects Self-Service Workarounds That Force a Backend ResetFix 1: The Build Source Toggle (Clears Stale Pages DB State)Simply unpublishing and republishing doesn't always invalidate the underlying backend certificate state. Instead:
This forces GitHub's Pages provisioning service to destroy the stale legacy build record and rebind the modern deployment configuration. Fix 2: Refresh the Root
|
|
Fixed. For anyone who hits the same error, this is what worked:
http://geiserx.github.io/ePubLangMerger/ now answers 301 to https. Switching the build source and back did not help. Neither did setting and removing a custom domain that had no DNS record: no certificate was issued for it. My account already had a |
Fixed. For anyone who hits the same error, this is what worked:
<user>.github.iowith a CNAME record.http://geiserx.github.io/ePubLangMerger/ now answers 301 to https.
Switching the build source and back did not help. Neither did setting and removing a custom domain that had no DNS record: no certificate was issued for it. My account already had a
<user>.github.iosite, so that was not the cause.