Unblocking GitHub Pages HTTPS: A Community Insight into Certificate Woes and Developer Productivity

Deploying a web project should be a straightforward step in the software development lifecycle, yet sometimes unforeseen technical glitches can significantly impede progress. When critical infrastructure like HTTPS certificates gets stuck, it directly impacts developer productivity and throws a wrench into software development tracking. This community insight delves into a common frustration faced by GitHub Pages users: a custom domain's HTTPS certificate remaining in a 'new' or 'dns_changed' state for an extended period, despite correct DNS configuration.

Developer troubleshooting a stuck HTTPS certificate on GitHub Pages.
Developer troubleshooting a stuck HTTPS certificate on GitHub Pages.

The Stuck Certificate Conundrum

A GitHub user, yhdog0425-eng, encountered a persistent issue where their GitHub Pages custom domain, www.hanno-insatsu.jp, had its HTTPS certificate stuck in a 'new' state for over a week. Despite all DNS checks passing and the site serving correctly over HTTP, the 'Enforce HTTPS' option remained unavailable, and HTTPS connections revealed a name mismatch, still serving the *.github.io certificate.

Initial Setup and Symptoms

The setup was standard for GitHub Pages with a custom domain:

  • Repository: yhdog0425-eng/hanno-insatsu (public)
  • Custom Domain: www.hanno-insatsu.jp (with apex hanno-insatsu.jp)
  • DNS Configuration:
    • www.hanno-insatsu.jp CNAME to yhdog0425-eng.github.io
    • hanno-insatsu.jp A records pointing to GitHub's IP addresses (185.199.108.153, 185.199.109.153, 185.199.110.153, 185.199.111.153)
    • No AAAA records, no CAA record blocking Let's Encrypt.
  • GitHub Pages API State: https_certificate.state was 'new', https_enforced: false, and health checks showed is_https_eligible: true but with https_error: "peer_failed_verification".
Community collaboration to resolve a custom domain certificate issue.
Community collaboration to resolve a custom domain certificate issue.

Exhaustive Troubleshooting Attempts

Before reaching out to the community, yhdog0425-eng had already tried several common troubleshooting steps, highlighting the frustration that can impede software development tracking when basic deployment steps become blockers:

  • Removed and re-added the custom domain multiple times, waiting 12+ hours between attempts.
  • Unpublished and re-enabled GitHub Pages for the repository.

Each attempt reset the certificate state back to 'new' but never progressed to 'authorization_pending' or 'issued'.

A Community-Driven Workaround

The GitHub Community stepped in with a novel suggestion from Akshay-cp7: change the custom domain setting from the www subdomain to the apex domain.

The Apex Domain Strategy

The proposed solution involved:

  1. Navigating to Settings → Pages → Custom domain.
  2. Changing the custom domain from www.hanno-insatsu.jp to hanno-insatsu.jp and saving. This action also updates the CNAME file in the repository.
  3. Leaving the DNS records exactly as they were, specifically the A records for the apex domain and the CNAME for the www subdomain.
  4. Waiting several hours for the certificate process to restart.

The rationale behind this approach is that when the apex is set as the custom domain, GitHub requests a single certificate covering both the apex (hanno-insatsu.jp) and its www subdomain, often triggering a fresh certificate order rather than reusing a stuck one. This can sometimes bypass issues specific to www-only requests.

Partial Progress, Lingering Blockade

Following this advice, yhdog0425-eng updated the community. The certificate state did indeed change from 'new' to 'dns_changed'. However, after 26 hours, it still had not progressed to 'approved' or 'issued'. The problem persisted, underscoring how unforeseen technical hurdles can derail software development tracking timelines and impact developer productivity.

This discussion highlights that while community insights can offer valuable workarounds, some persistent issues, especially those involving certificate provisioning, ultimately require intervention from platform staff. Such incidents emphasize the importance of robust support channels and transparent processes for maintaining high developer productivity and ensuring smooth software development tracking.

|

Dashboards, alerts, and review-ready summaries built on your GitHub activity.

 Install GitHub App to Start
Dashboard with engineering activity trends