I am a little confused and am looking for some guidance. I am running the latest Nginx on a home machine running Unbuntu 20.04 version 2. I have pfsense as my router/firewall running on a different machine. I have setup a DDNS ([my_name].ddns.net) entry to point to my ever changing WAN IP address.
I have 4 domains (various ways to spell my name).
I was able to create a Let's Encrypt certificate using certbot for the [my_name].ddns.net URL using:
sudo /snap/bin/certbot run --cert-name [my_name].ddns.net
It tells me that the plumbing is right. I confirmed that the certificate was generated, that nginx was modified and most importantly the URL comes up securely when referenced using HTTPS.
I am now trying to create another certificate for one of the 4 main domains:
sudo /snap/bin/certbot run --cert-name [my_name].com -d [my_name].com
This command is trying, but is failing validation. I am hosting this URL at mydomain.com and have it configured for a standard forward to [my_name].ddns.net. The only thing I can figure is that the updated settings at mydomain.com haven't propagated yet.
Should I be able to do what I am trying to do (i.e. create a second certificate hosted on the same webserver as the DDNS domain serving up the same website with HTTPS through a standard forward)?
Ideally, I would love to get these 4 domains to stealth forward to [my_name].ddns.net so the user doesn't ever see the DDNS URL, but still gets the "secure" message from the browser.
Is this possible or am I missing something?
Thanks a bunch.