Blame SOURCES/0010-Replace-SSLCertVerificationError-with-CertificateErr_rhbz#1858318.patch

2ff659
From 66a5a0efd538e31a190ca6ecb775bc1dfc4ee232 Mon Sep 17 00:00:00 2001
2ff659
From: Rob Crittenden <rcritten@redhat.com>
2ff659
Date: Wed, 29 Jul 2020 13:42:43 -0400
2ff659
Subject: [PATCH] Replace SSLCertVerificationError with CertificateError for
2ff659
 py36
2ff659
2ff659
This exception was added in python 3.7. Use CertificateError
2ff659
instead which is an alias and will work with older python releases.
2ff659
2ff659
https://bugzilla.redhat.com/show_bug.cgi?id=1858318
2ff659
2ff659
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
2ff659
---
2ff659
 ipaserver/install/server/upgrade.py | 2 +-
2ff659
 1 file changed, 1 insertion(+), 1 deletion(-)
2ff659
2ff659
diff --git a/ipaserver/install/server/upgrade.py b/ipaserver/install/server/upgrade.py
2ff659
index 2c36bc0e2..2c1517865 100644
2ff659
--- a/ipaserver/install/server/upgrade.py
2ff659
+++ b/ipaserver/install/server/upgrade.py
2ff659
@@ -667,7 +667,7 @@ def http_certificate_ensure_ipa_ca_dnsname(http):
2ff659
 
2ff659
     try:
2ff659
         cert.match_hostname(expect)
2ff659
-    except ssl.SSLCertVerificationError:
2ff659
+    except ssl.CertificateError:
2ff659
         if certs.is_ipa_issued_cert(api, cert):
2ff659
             request_id = certmonger.get_request_id(
2ff659
                 {'cert-file': paths.HTTPD_CERT_FILE})
2ff659
-- 
2ff659
2.26.2
2ff659