Look for certs only if :trusted_certs_dir is not nil