Christian Heimes added the comment: sha256(conn.getpeercert(True)) works until the cert gets e.g. more SAN fields. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18735> _______________________________________