I guess I'm not the first one to raise the issue, but I haven't found anything yet by searching.
I'm trying to automate VM deployment with a letsencrypt certificate. So I have tried to remove user interaction as much as possible and reached:
sudo /opt/letsencrypt/letsencrypt-auto certonly --manual -m contact@example.com -d example.com -t --manual-public-ip-logging-ok --agree-tos
But if I add the -n option, I get:
PluginError('Running manual mode non-interactively is not supported',)
I'm guessing the point is that manual mode does require user interaction hence cannot be fully done in non-interactive mode. At least during the file-validation step.
Which is why I'd like to discuss splitting the command in two steps:
sudo /opt/letsencrypt/letsencrypt-auto certonly --manual -m contact@example.com -d example.com -t --manual-public-ip-logging-ok --agree-tos --generate-file /home/user
which would create the file /home/user/.well-known/acme-challenge/buCgmexKDQypJfWE4-XmUfP1cpILzsBR4UWRE_o8iuc with the expected content and then running
sudo /opt/letsencrypt/letsencrypt-auto certonly --manual -m contact@example.com -d example.com -t --manual-public-ip-logging-ok --agree-tos --validate
would finish the process.
Would this make sense? Did I miss something?
Another option would be to build allow a script to be executed between the file generation step and the verification step:
sudo /opt/letsencrypt/letsencrypt-auto certonly --manual -m contact@example.com -d example.com -t --manual-public-ip-logging-ok --agree-tos --deploy-verification ./deploy-verification.sh
I guess I'm not the first one to raise the issue, but I haven't found anything yet by searching.
I'm trying to automate VM deployment with a letsencrypt certificate. So I have tried to remove user interaction as much as possible and reached:
But if I add the
-noption, I get:I'm guessing the point is that manual mode does require user interaction hence cannot be fully done in non-interactive mode. At least during the file-validation step.
Which is why I'd like to discuss splitting the command in two steps:
which would create the file
/home/user/.well-known/acme-challenge/buCgmexKDQypJfWE4-XmUfP1cpILzsBR4UWRE_o8iucwith the expected content and then runningwould finish the process.
Would this make sense? Did I miss something?
Another option would be to build allow a script to be executed between the file generation step and the verification step: