How can I get GitHub pages to give a correct SSL certificate for my www subdomain

Viewed 304

https://joshuafox.com shows correctly. However, https://www.joshuafox.com gives an SSL certificate error.

The DNS records seem correct, as shown by dig, and by the fact that http://www.joshuafox.com (no HTTPS) correctly redirects.

$ dig www.joshuafox.com
...
;; ANSWER SECTION:
www.joshuafox.com.  86400   IN  CNAME   joshuafox.com.
joshuafox.com.      3600    IN  A   185.199.109.153

This new feature in GitHub Pages is said to support that. How do I enable it?

1 Answers

Edit: Overhaul of the answer

To include your the www apex, you should add this line to the domain DNS record:

CNAME www.joshuafox.com joshuafox.github.io 86400

If you use dig it should look like:

dig www.joshuafox.com +nostats +nocomments +nocmd
;www.joshuafox.com.             IN      A
www.joshuafox.com.      86400   IN      CNAME   joshuafox.github.io.
joshuafox.github.io.    3600    IN      A       185.199.109.153
joshuafox.github.io.    3600    IN      A       185.199.110.153
joshuafox.github.io.    3600    IN      A       185.199.111.153
joshuafox.github.io.    3600    IN      A       185.199.108.153
dig joshuafox.com +nostats +nocomments +nocmd
;joshuafox.com.                 IN      A
joshuafox.com.          3600    IN      A       185.199.110.153
joshuafox.com.          3600    IN      A       185.199.111.153
joshuafox.com.          3600    IN      A       185.199.108.153
joshuafox.com.          3600    IN      A       185.199.109.153
Related