diff --git a/ipaserver/install/ipa_migrate.py b/ipaserver/install/ipa_migrate.py index 20f59f84d..e21937401 100644 --- a/ipaserver/install/ipa_migrate.py +++ b/ipaserver/install/ipa_migrate.py @@ -761,6 +761,12 @@ class IPAMigrate(): try: ds_conn = LDAPClient(ldapuri, cacert=self.args.cacertfile, start_tls=True) + except ValueError: + # Most likely invalid certificate + self.handle_error( + "Failed to connect to remote server: " + "CA certificate is invalid" + ) except ( ldap.LDAPError, errors.NetworkError,