Ansible TLS fail with Proxmox API

balukmwtw

New Member
Jan 28, 2025
2
0
1
Hi,
I have Ansible on debian 12 LXC container with multiple playbooks using Proxmox API on node with IP 192.168.2.2. At some point Proxmox had to regenerate SSL cert and this got me stuck with this error:
"An error occurred: 596 Errors during TLS negotiation, request sending and header processing: Broken pipe - b''"

My try to fix it was copying the cert from node to container with:
scp root@192.168.2.2:/etc/pve/local/pve-ssl.pem /usr/local/share/ca-certificates/proxmox.crt
update-ca-certificates

Now when I wget https://192.168.2.2:8006/api2/json/nodes, I get:
--2025-11-05 18:21:13-- https://192.168.2.2:8006/api2/json/nodes
Connecting to 192.168.2.2:8006... connected.
HTTP request sent, awaiting response... 401 No ticket

Username/Password Authentication Failed.


So the handshake seems fine, yet the ansible playbooks gives the same error as previously. Did anyone come across similar issues?