It seems to be solved. Inspired by:
I took the SSL certificates using:
openssl s_client -connect 172.16.20.11:8006
Then copy it on a file located at /usr/local/share/ca-certificates/local_proxmo.crt
.
Running the commands:
update-ca-certificates
update-ca-certificates --fresh
This basically add the Proxmox certificate as a trusted cert on the machine which host Telegraf.
Now I have a E! [inputs.proxmox] Error in plugin: unexpected end of JSON input
error, but at least the SSL/TLS error is fixed !