I have just installed a certificate for 8 domains with no issues, but for some reason this particular domain never shows up on the list as an available domain to install a certificate.
I have the conf file in my sites-available folder
I have ServerAlias and ServerName setup just like all the other
Checked permissions in the file and it was fine like the others
But no matter what I do after running sudo certbot --apache when the list of domains pops up I can see all the other domains show up except the one I am currently doing.
What was weird is that before I had even setup a certificate for that domain I checked to see what certificated I had on the server and it showed that domain in the list. What was crazy is I didn’t even set it up yet so I have no idea what happened.
What I did do different with this domain is that I copied a previos conf file that had already contain the Rewrite conditions that Certbot creates so I was not sure if after restarting apache that screwed thing up.
I went back and recreated the file instead of copied and I delted the existing cert with sudo certbot delete and I still can’t get that domain to appear.
I even tried to install it manually with sudo certbot --apache -d dinargururv.com -d www.dinargururv.com but that still didn’t work.
I never had to create anything in the sites-enabled folder with any of my other domains. They were already auto generated. Here are the steps I did with all my previous domains that worked fine.
I would create my conf file in the sites-available folder -> example.com.conf
I would run the Certbot command sudo certbot --apache
The domain example.com would appear on the list to choose from
I choose the domains by the corresponding numbers
It would auto-generate the certificate and all was good.
I did this multiple times with no problem, but for this particular domain it never shows up on the list for me to choose.