Python TLS Connection Reset By Peer

The 3rd parameter of the with_certificate_validation() method is trust_store_file_path. Have you tried passing /etc/ssl/certs?