Revert "disable verification of ssl certs via CA if fingerpint is set"

This reverts commit 871b1175f1.
This commit is contained in:
Rodolfo García Peñas (kix) 2021-10-12 01:24:53 +02:00
parent 4ca9c75c6f
commit 31149d1b1f

View File

@ -95,9 +95,6 @@ class IMAPServer:
self.__verifycert = None # Disable cert verification.
# This way of working sucks hard...
self.fingerprint = repos.get_ssl_fingerprint()
if self.fingerprint is not None:
self.__verifycert = None # if we have a cert fingerprint
# we do not require verfication via CA
self.tlslevel = repos.gettlslevel()
self.sslversion = repos.getsslversion()
self.starttls = repos.getstarttls()