clean idp_cert