Fix read of tls_key/cert file to binary