Ordering LE certificate on command line

Jul 26, 2021
62
19
13
56
Hi folks,

we are using bash scripts for the basic setup of our PBS servers. I would like to order an LE certificate during the setup, so I searched for the CLI commands. I've figured out that I have to use the "proxmox-backup-manager acme" command. First I have to create an ACME account and accept the TOS with this command:

echo 'Y' | output=$(proxmox-backup-manager acme account register [account name} [email address] --directory [dir name final or stage2])

That works fine, but I'm not be able to order the certificate.

On PVE by example we are using this script:

pvenode config set --acme domains=[server hostname]
pvenode acme cert order

Can someone provide me the correct syntax for PBS?

Best regards
Martin
 
Last edited:
anything specific that does not work?

e.g. does using
Code:
proxmox-backup-manager node update --acme <..> --acmedomain0 <..> 
proxmox-backup-manager acme cert order

throw any errors?
 
Thanks a lot Dominik. Everything is fine now. What I didn't find was the command to set the acme account & domain for the order process. Next time I will read the docs more carefully...

So that solved my issue: proxmox-backup-manager node update --acme <..> --acmedomain0 <..>

Best Regards,
Martin