support cert_file and client_file