I recently inherited management of a web project and ran into an issue with an expired SSL certificate. The site is hosted on AWS with a wildcard certificate generated from ACM, which is active and working. However, I discovered the issue is a second expired certificate, generated manually by Let's Encrypt, which is causing my issue.
After testing validity of several URLs, I found that:
www.mywebsite.example → Working AWS certificate mywebsite.example → Expired certificate
Which is bizarre, considering my AWS certificate both uses
mywebsite.example as well as a wildcard
I was under the assumption that if a domain held two certificates, an expired one shouldn't affect a working one, and the wildcard certificate should cover both cases. How can I fix this issue so that the wildcard certificate from AWS will apply to all traffic, instead of just