1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

Update certs-from-mozilla.py (#7573)

Looks like Mozilla changed the csv, certs are now at row 32
This commit is contained in:
gnorbsl 2020-09-03 04:53:54 +02:00 committed by GitHub
parent d02bc02fac
commit e636a6587c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ except Exception:
# Mozilla's URL for the CSV file with included PEM certs # Mozilla's URL for the CSV file with included PEM certs
mozurl = "https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReportPEMCSV" 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 = [] names = []
pems = [] pems = []
response = urlopen(mozurl) response = urlopen(mozurl)
@ -35,7 +35,7 @@ csvFile = StringIO(csvData)
csvReader = csv.reader(csvFile) csvReader = csv.reader(csvFile)
for row in csvReader: for row in csvReader:
names.append(row[0]+":"+row[1]+":"+row[2]) names.append(row[0]+":"+row[1]+":"+row[2])
pems.append(row[30]) pems.append(row[32])
del names[0] # Remove headers del names[0] # Remove headers
del pems[0] # Remove headers del pems[0] # Remove headers