The “authz validity time” (i.e. the time in which you don’t need to re-verify your domain using your account key) is currently 60 days, however I believe the goal is to reduce that down to 7 days.
Yes, you are right. You are using a dns manual mode, which is one of the modes that acme.sh supports.
The “authz validity time” is 60 days for now( limited by Let’s encrypt CA), and acme.sh will renew the cert in no more than 59 days for now. So, your cert will be successfully renewed automatically in 60 days.
But, Let’s encrypt is planing to reduce the authz validity time, it is very probably in future that the automatic renewal will fail.
So, it’s strongly recommended to use other modes instead of dns manual mode. Such as: webroot, standalone or Dns api mode.
one thing that would be better would be just kicking your account key into DNS and finish it there instead of doing a challenge response on the DNS, at least in my opinion.
Simple. you have to prove you have the account key anyway (probably its own challenge response).
So using the sane account key for domain validation isn’t really a stretch imo.
so in short mitm protection is already given. you just instead of challnge responsing the domain too, you just bind the domain to any given account/s…
Most of our servers are not accessible through the Internet, and due to security concerns we require 2-factor authentication to update any dns records.
Im stil researching how to automate this fully, but for now, it seems like cert generation still is a partially manual process.
well if your DNS has an api then it may help. if you have a custom DNS server software you could also just make an API which explicitly only allows doing acme challenge records.
API usage by definition cant use 2 factor authentication.
I have also considered making my own API for it, but theres always the risk of introducing a bug that will allow the addition of other records as well.
I would never, ever allow dynamic updates into a main production zone. I would always create a subdomain for the specific purpose and point to it from the main zone.