This commit is contained in:
RR 2018-05-14 19:50:18 +00:00 committed by GitHub
commit c21a69e110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -787,8 +787,11 @@ remotehost = examplehost
#
# In Windows, Microsoft uses the term "thumbprint" instead of "fingerprint".
#
# Fingerprints must be in hexadecimal form without leading '0x':
# 40 hex digits like bbfe29cf97acb204591edbafe0aa8c8f914287c9.
# Fingerprints must be in hexadecimal form without leading '0x', and may have
# the separating colons. This is non case-sensitive.
# Examples:
# sha1 "bbfe29cf97acb204591edbafe0aa8c8f914287c9".
# sha1 with colons "BB:FE:29:CF:97:AC:B2:04:59:1E:DB:AF:E0:AA:8C:8F:91:42:87:C9"
#
#cert_fingerprint = <SHA1_of_server_certificate_here>[, <another_SHA1>]

View File

@ -293,7 +293,7 @@ class IMAPRepository(BaseRepository):
comma-separated fingerprints in hex form."""
value = self.getconf('cert_fingerprint', "")
return [f.strip().lower() for f in value.split(',') if f]
return [f.strip().lower().replace(":", "") for f in value.split(',') if f]
def setoauth2_request_url(self, url):
self.oauth2_request_url = url