Im having alot of trouble getting a ssl certificate working on a domain that i purchase in Namecheap.
I have a Node Application running in Heroku.
My DNS configuration in Namecheap:
CNAME Record @ myapp.herokuapp.com. 1 min
CNAME Record www myapp.herokuapp.com. 1 min
URL Redirect Record @ https://www.myapp.herokuapp.com. Unmasked
URL Redirect Record www https://www.myapp.herokuapp.com. Unmasked
My DNS configuration in Heroku:
*.mywebsite.com
mywebsite.com
www.mywebsite.com
Till this point everything works fine. The problem is that i get a invalid certificate.
So i went to heroku, added a SSL certificate i got on NameCheap, and installed it there with the Key, CA and CRT. In heroku it shows the following confirmation:
Your certificate mywebsite.com expires on March 15, 2021.
The problem is, on https://www.mywebsite.com i still get the certificate from heroku, like so:
*.herokuapp.com Digicert SHA2 High assurance server CA
this turns the certificate from https://mywebsite.com invalid, i think because, the hostname ( mywebsite.com) does not have the same certificate as bieng showed (im talking about the *.herokuapp.com Digicert SHA2 High assurance server CA )