My default subdomain is non-compos-mentis.netlify.app
. I recently changed my custom domain from blog.asarkar.org
to blog.asarkar.com
. I’ve been trying to set up a redirect from the old domain to the new one, and have added a domain alias for blog.asarkar.org
, as well as set up a CNAME record blog -> non-compos-mentis.netlify.app
with my DNS provider. However, I keep getting a SSL certificate error when accessing https://blog.asarkar.org/.
Here’s a cURL output:
curl -v -L blog.asarkar.org
...
* Connected to blog.asarkar.org (x.x.x.x) port 80 (#0)
< HTTP/1.1 301 Moved Permanently
< Cache-Control: public, max-age=0, must-revalidate
...
< Location: https://blog.asarkar.org/
...
* Connected to blog.asarkar.org (x.x.x.x) port 443 (#1)
...
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=ca; L=San Francisco; O=Netlify, Inc; CN=*.netlify.com
* start date: Jun 15 00:00:00 2020 GMT
* expire date: Aug 3 12:00:00 2021 GMT
* subjectAltName does not match blog.asarkar.org
* SSL: no alternative certificate subject name matches target host name 'blog.asarkar.org'
* Closing connection 1