If you post your domain name, people might notice DNS problems or other problems that could be causing this error. Something like this has often been related to DNS configuration errors.
Hi @schoen.
Thank you for your reply.
My domain is https://plantanaturalparaempresa.es/
I don’t think the problem is related with DNS, but any help is welcome.
There was no problem with the certificate before, just when try to renew it.
Solved!
The problem was in the “Additional Nginx Directives” (Content Security Policy, Strict Transport Security and Public Key Pins), probably due a bad configuration.
Removing these headers the certificate has been renoved without problems.
Is Let’s Encrypt compatible with Content Security Policy, Strict Transport Security and Public Key Pins headers?
The validation server is completely unaffected by those headers. There may have been an issue with the web server configuration, and the settings for those headers may have been involved (for example, issues with how the location blocks in the Nginx configuration were arranged), but the headers have no direct bearing on the validation server.
In general, you can and (often) should use CSP and HSTS.
HPKP is dangerous and difficult to configure safely. When pinning CA roots, you should pin more than 1, and, well, Let's Encrypt is only one CA. When pinning certificate keys, some popular Let's Encrypt clients may prefer to always generate new keys and make it difficult to use a specific one, but you certainly can; you may just have to configure something or switch clients.
It's not possible for a CA to be inherently incompatible with CSP, HPKP or HSTS, except that it may be difficult to pin a CA's root or intermediate certificates if they don't consistently use the same ones.