Update ca_file code