diff --git a/ipaserver/install/server/upgrade.py b/ipaserver/install/server/upgrade.py index 091fdf50c..61e7af34d 100644 --- a/ipaserver/install/server/upgrade.py +++ b/ipaserver/install/server/upgrade.py @@ -686,7 +686,7 @@ def http_certificate_ensure_ipa_ca_dnsname(http): try: cert.match_hostname(expect) - except ssl.SSLCertVerificationError: + except ssl.CertificateError: if certs.is_ipa_issued_cert(api, cert): request_id = certmonger.get_request_id( {'cert-file': paths.HTTPD_CERT_FILE})