From e636a6587c17d9ce20464ac6af140fb5e61bd1e5 Mon Sep 17 00:00:00 2001 From: gnorbsl <6427935+gnorbsl@users.noreply.github.com> Date: Thu, 3 Sep 2020 04:53:54 +0200 Subject: [PATCH] Update certs-from-mozilla.py (#7573) Looks like Mozilla changed the csv, certs are now at row 32 --- .../examples/BearSSL_CertStore/certs-from-mozilla.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/ESP8266WiFi/examples/BearSSL_CertStore/certs-from-mozilla.py b/libraries/ESP8266WiFi/examples/BearSSL_CertStore/certs-from-mozilla.py index 68881c709..88e3f398d 100755 --- a/libraries/ESP8266WiFi/examples/BearSSL_CertStore/certs-from-mozilla.py +++ b/libraries/ESP8266WiFi/examples/BearSSL_CertStore/certs-from-mozilla.py @@ -24,7 +24,7 @@ except Exception: # Mozilla's URL for the CSV file with included PEM certs mozurl = "https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReportPEMCSV" -# Load the manes[] and pems[] array from the URL +# Load the names[] and pems[] array from the URL names = [] pems = [] response = urlopen(mozurl) @@ -35,7 +35,7 @@ csvFile = StringIO(csvData) csvReader = csv.reader(csvFile) for row in csvReader: names.append(row[0]+":"+row[1]+":"+row[2]) - pems.append(row[30]) + pems.append(row[32]) del names[0] # Remove headers del pems[0] # Remove headers