I am using Certbot and have several domains that I need to switch from HTTP authorization to AWS Route 53.
Both configurations are working fine, but now I need to switch all the certificates to use route 53. Is there a certbot command that does that?
In the config file I see this:
[renewalparams]
authenticator = apache
installer = apache
account = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
manual_public_ip_logging_ok = None
server = https://acme-v02.api.letsencrypt.org/directory
I found this thread in the letsencrypt community forum, where it is mentioned, that the global
/etc/letsencrypt/cli.initakes precedence over the renewal config of the single domains. If all your domains should be authenticated via route53 you can add your config there.Adding /etc/letsencrypt/cli.ini to the server is the trick.
This is a sample file from https://gist.github.com/antillean/8517fba47df25a98100a
So for it to work, the changes required were to change authenticator to
and then perform a sed statement in the /etc/letsencrypt/conf directory to remove the preferred challenges which were HTTP so it will default to the dns-route53 challenge
then testing it by running
and everything worked as desired.