I was having all kinds of issues with the certbot process, after having taken a snapshot and producing an image to duplicate an EC2, resulting in moving one of my services ( https://www.mailaddiction.com ) to its own instance.

The certbot process was complaining with strange errors that were never present on the original instance:

And after spending several hours of googling and trying several different potential fixes, this was the one that solved the problem: