Skip to content

Commit d091945

Browse files
author
Espressif Systems
committed
update make_cert.py
1 parent 3ca6af5 commit d091945

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Clone ESP8266_RTOS_SDK, e.g., to ~/ESP8266_RTOS_SDK.
2323
$git clone https://github.com/espressif/ESP8266_RTOS_SDK.git
2424

2525
Modify gen_misc.sh or gen_misc.bat:
26-
For Linux£º
26+
For Linux:
2727

2828
$export SDK_PATH=~/ESP8266_RTOS_SDK
2929
$export BIN_PATH=~/ESP8266_BIN

tools/make_cert.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ def main():
2525
file_list = os.listdir(os.getcwd())
2626
cert_file_list = []
2727
for _file in file_list:
28-
pos = _file.find(".cer")
29-
if pos != -1:
30-
cert_file_list.append(_file[:pos])
31-
28+
if _file.endswith(".cer") or _file.endswith(".key"):
29+
cert_file_list.append(_file)
30+
print cert_file_list
3231
for cert_file in cert_file_list:
33-
with open(cert_file+".cer", 'rb') as f:
32+
with open(cert_file, 'rb') as f:
3433
buff = f.read()
3534
cert_list.append(Cert(cert_file, buff))
3635
with open('esp_ca_cert.bin', 'wb+') as f:

0 commit comments

Comments
 (0)