changeset: 100580:8df52636b0dc branch: 2.7 parent: 100577:fa68df1d5e65 user: Steve Dower date: Thu Mar 17 15:02:19 2016 -0700 files: Lib/ssl.py Misc/NEWS description: Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji. diff -r fa68df1d5e65 -r 8df52636b0dc Lib/ssl.py --- a/Lib/ssl.py Thu Mar 17 14:41:36 2016 -0700 +++ b/Lib/ssl.py Thu Mar 17 15:02:19 2016 -0700 @@ -380,7 +380,8 @@ if encoding == "x509_asn": if trust is True or purpose.oid in trust: certs.extend(cert) - self.load_verify_locations(cadata=certs) + if certs: + self.load_verify_locations(cadata=certs) return certs def load_default_certs(self, purpose=Purpose.SERVER_AUTH): diff -r fa68df1d5e65 -r 8df52636b0dc Misc/NEWS --- a/Misc/NEWS Thu Mar 17 14:41:36 2016 -0700 +++ b/Misc/NEWS Thu Mar 17 15:02:19 2016 -0700 @@ -58,6 +58,9 @@ Library ------- +- Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store + is empty. Patch by Baji. + - Issue #26513: Fixes platform module detection of Windows Server - Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by