Hi,
I try to get LE certs for my proxmox node. I cant find a way to accept the LE tos in my script.
how do I accept the tos without manual pushing "y" in terminal?
I tried:
echo 'y' | ...
echo 'y\n' | ...
yes | ...
... --force 1
... --quiet 1
Any help is highly appreciated. Happy Easter!
EDIT:
Solved with expect, when someone finds a more elegant way, please tell me.
EDIT2: https://forum.proxmox.com/threads/lets-encrypt-non-interactive-setup.65783/
I try to get LE certs for my proxmox node. I cant find a way to accept the LE tos in my script.
how do I accept the tos without manual pushing "y" in terminal?
Code:
pvenode acme account register default mail@domain.tld --directory https://acme-staging-v02.api.letsencrypt.org/directory
Attempting to fetch Terms of Service from 'https://acme-staging-v02.api.letsencrypt.org/directory'
Terms of Service: https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
Do you agree to the above terms? [y|N]
I tried:
echo 'y' | ...
echo 'y\n' | ...
yes | ...
... --force 1
... --quiet 1
Any help is highly appreciated. Happy Easter!
EDIT:
Solved with expect, when someone finds a more elegant way, please tell me.
Code:
expect -c "spawn pvenode acme account register default mail@domain.tld --directory https://acme-staging-v02.api.letsencrypt.org/directory; expect -re \"Do you agree\"; send \"y\r\";"
EDIT2: https://forum.proxmox.com/threads/lets-encrypt-non-interactive-setup.65783/
Last edited: