GitHub Pages Custom Domains: Why Your `www` Subdomain Might Be Missing its SSL Certificate

Developer troubleshooting a broken website connection due to SSL issues on a www subdomain.
Developer troubleshooting a broken website connection due to SSL issues on a www subdomain.

Navigating GitHub Pages Custom Domain SSL: A `www` Subdomain Conundrum

GitHub Pages offers a convenient way to host static sites, complete with custom domain support and automatic HTTPS. However, a recent community discussion highlighted a persistent issue where the automatically issued TLS certificate for an apex custom domain fails to cover its corresponding www subdomain. This oversight can significantly impact site accessibility and developer workflow, underscoring the importance of reliable software engineering productivity tools.

The Apex Domain Certificate Challenge

User nrm461 reported a specific problem with their GitHub Pages site, nrm461/nrm461.github.io, which uses the custom apex domain nicholasmetcalf.com. While the primary apex domain successfully received a TLS certificate, the www.nicholasmetcalf.com subdomain never did. This resulted in connection failures for users attempting to access the site via the www variant, despite GitHub's documentation suggesting that apex domains should automatically secure their www counterparts.

The DNS configuration, hosted on DreamHost, followed GitHub's guidelines precisely:

  • nicholasmetcalf.com — A records pointing to GitHub Pages IPs.
  • www.nicholasmetcalf.com — CNAME record pointing to nrm461.github.io.

Further investigation using the GitHub API confirmed the certificate's scope:

{
  "https_certificate": {
    "state": "approved",
    "description": "The certificate has been approved.",
    "domains": ["nicholasmetcalf.com"],
    "expires_at": "2026-10-25"
  }
}

The served certificate's Subject Alternative Name (SAN) list also explicitly showed only DNS:nicholasmetcalf.com, confirming the absence of the www subdomain.

Troubleshooting Attempts and Roadblocks

nrm461 undertook several logical troubleshooting steps, none of which resolved the issue:

  • Removing and re-adding the custom domain in Pages settings. This action surprisingly did not trigger a new certificate issuance. Instead, the identical, apex-only certificate with the same expiration date was returned, suggesting GitHub Pages matched an existing certificate rather than requesting a new one.
  • Deleting and recreating the www CNAME record, then waiting for DNS propagation. This had no effect on the certificate.
  • Waiting for two days, hoping for automatic resolution.

The core question remained: Is there a supported way to force GitHub Pages to re-request the certificate to include the www variant, or does this require intervention from GitHub staff?

Impact on Software Engineering Productivity Tools

This scenario highlights a critical point for developers relying on software engineering productivity tools like GitHub Pages. While these tools aim to simplify deployment and management, unexpected configuration glitches or certificate issues can become significant blockers. Time spent debugging and waiting for certificate propagation or support responses detracts from core development tasks and can delay a software project plan. Ensuring that foundational services like SSL certificates function as expected across all domain variants is crucial for maintaining efficient workflows and preventing unnecessary downtime.

Community Insights and Next Steps

The discussion received an automated response acknowledging the feedback and was subsequently moved to a different category, but no immediate solution or workaround was provided by GitHub staff or other community members. This leaves users like nrm461 in a state of uncertainty, reliant on potential future updates or direct support to resolve such critical infrastructure issues.

For developers encountering similar problems, it's essential to monitor GitHub's changelog and product roadmap for updates related to custom domain and SSL certificate management. Engaging with the community discussions remains a vital avenue for sharing experiences and potentially discovering workarounds or escalating persistent issues.

Visualizing a website's apex domain with SSL and its www subdomain without SSL, highlighting the discrepancy.
Visualizing a website's apex domain with SSL and its www subdomain without SSL, highlighting the discrepancy.

|

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

 Install GitHub App to Start
Dashboard with engineering activity trends