Yesterday I was having trouble with a cert. It turns out the underlying problem may have been Let's Encrypt being down for some time. Which is probably a pretty rare event.
In my troubleshooting attempts I tried switching to a staging cert. It was after I made that switch that Let's Encrypt seemed to come back on line. And so I got a staging cert. Which was of no help since the site was actually a production site and the browser warnings are ominous.
The log message when I clicked "Renew all certs" was that no cert was issued because one already existed. I had already edited the domain and chosen "wildcard prod" but that didn't make a difference.
In fact, deleting the domain from from my.example.com/#/domains
and re-adding (also with Wildcard prod) did nothing.
Then I ssh-ed into the Ubuntu 20.04 server Cloudron runs on and went to: /home/yellowtent/boxdata/certs
and I
sudo rm exampleapp.com*
sudo rm _.exampleapp.com*
I went back to my.example.com/#/domains
and clicked "Renew all certs" and all was good.
While I was in /home/yellowtent/boxdata/certs
I noticed that any domain that I had previously deleted still had certs there.
Is this by design? If so, why?
Also, how is one supposed to replace a staging cert with prod one?