Updated cafile code to handle certificate files with multiple certs.