I have a three node cluster with all three nodes using Lets Encrypt certificates. These nodes are fresh install of PVE 7.3 and have all of the latest updates. Both salt-cloud and terraform fail to create containers with a "tls_process_certificate: certificate verify failed" error. However, they successfully call a few APIs but fail when calling the API to actually create the container. From the terraform log, it appears that PVE receives the request, calls another API internally, and that's where the verification is failing, NOT between the client and the server.
Code:
2023-02-12T19:40:22.579-0800 [INFO] provider.terraform-provider-proxmox_v2.9.11: 2023/02/12 19:40:22 >>>>>>>>>> REQUEST:
GET /api2/json/cluster/nextid HTTP/1.1
Host: [REDACTED]:8006
User-Agent: Go-http-client/1.1
Accept: application/json
Authorization: [REDACTED]
Accept-Encoding: gzip
: timestamp=2023-02-12T19:40:22.578-0800
2023-02-12T19:40:22.595-0800 [INFO] provider.terraform-provider-proxmox_v2.9.11: 2023/02/12 19:40:22 <<<<<<<<<< RESULT:
HTTP/1.1 200 OK
Content-Length: 14
Cache-Control: max-age=0
Connection: Keep-Alive
Content-Type: application/json;charset=UTF-8
Date: Mon, 13 Feb 2023 03:40:22 GMT
Expires: Mon, 13 Feb 2023 03:40:22 GMT
Pragma: no-cache
Server: pve-api-daemon/3.0
{"data":"100"}: timestamp=2023-02-12T19:40:22.595-0800
2023-02-12T19:40:22.595-0800 [INFO] provider.terraform-provider-proxmox_v2.9.11: 2023/02/12 19:40:22 >>>>>>>>>> REQUEST:
POST /api2/json/nodes/[REDACTED]/lxc HTTP/1.1
Host: [REDACTED]:8006
User-Agent: Go-http-client/1.1
Content-Length: 434
Accept: application/json
Authorization: [REDACTED]
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
arch=amd64&cmode=tty&console=1&cores=2&cpulimit=0&cpuunits=100&hostname=salt&memory=2048&net0=bridge%3Dvmbr0%2Cname%3Deth0%2Cip6%3Dauto%2Cip%3Ddhcp&onboot=1&ostemplate=nas%3Adebian-11-standard_11.6-1_amd64.tar.zst&protection=0&rootfs=nvme%3A8&searchdomain=[REDACTED]&ssh-public-keys=[REDACTED]&start=1&storage=local&swap=2048&tty=2&unique=1&unprivileged=1&vmid=100: timestamp=2023-02-12T19:40:22.595-0800
2023-02-12T19:40:22.606-0800 [INFO] provider.terraform-provider-proxmox_v2.9.11: 2023/02/12 19:40:22 <<<<<<<<<< RESULT:
HTTP/1.1 596 tls_process_server_certificate: certificate verify failed
Connection: close
Cache-Control: max-age=0
Date: Mon, 13 Feb 2023 03:40:22 GMT
Expires: Mon, 13 Feb 2023 03:40:22 GMT
Pragma: no-cache
Server: pve-api-daemon/3.0
: timestamp=2023-02-12T19:40:22.606-0800