[SOLVED] Strange problem with Proxmox/PBS connection

okay, could you try to run the script using strace -f -o pbs_connect ./FILE? that should generate files starting with pbs_connect that show which syscalls are called (you might want to replace the password in the script with a dummy value, it shouldn't change the outcome).

please post the resulting files here as attachments.
 
okay - there seems to be some weird interaction when having an empty '/etc/ssl/certs/ca-certificates.crt' file. can you try regenerating it with update-ca-certificates?