Using the API to install HTTPS certificates on PBS

needanewername

New Member
Apr 12, 2023
7
2
1
My acme certificates are managed by my OPNsense VM and I have successfully used a plugin supplied by them to install certificates on the PVE servers via the API at
Code:
https://${_target_hostname}:${_target_port}/api2/json/nodes/${_node_name}/certificates/custom

Is there a way to do the same thing on a PBS machine?

I've tried the paths at
Code:
https://${_target_hostname}:${_target_port}/api2/json/nodes/certificates/custom
and
Code:
https://${_target_hostname}:${_target_port}/api2/json/certificates/custom
but both return 'Path not found' errors.
 
Hi Chris,
Thanks for the reply. The automation on the OPNsense VM is configured correctly as far as I can tell. I've created an API key with adequate permissions on the PBS. The logs on the OPNsense box show the automation is running when I tell it to. A tcpdump on the PBS shows traffic from OPNsense to PBS on 8007. The proxmox-backup and proxmox-backup-proxy services are running.

In /var/log/proxmox-backup/api/access.log I get:

Code:
::ffff:redacted - - [27/11/2024:16:36:09 +0000] "POST /api2/json/access/ticket" 200 827 libwww-perl/6.68
l/6.68
::ffff:redacted - - [27/11/2024:16:36:10 +0000] "POST //api2/json/access/ticket" 200 827 proxmox-backup-client/1.0
ox-backup-client/1.0
 
Last edited: