This doesn't appear to diff all the files, but just the $ca_file. Do we need an outer loop here?