diff --git a/README.md b/README.md index 83e87e05..d490f855 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Clone ESP8266_RTOS_SDK, e.g., to ~/ESP8266_RTOS_SDK. $git clone https://github.com/espressif/ESP8266_RTOS_SDK.git Modify gen_misc.sh or gen_misc.bat: -For Linux£º +For Linux: $export SDK_PATH=~/ESP8266_RTOS_SDK $export BIN_PATH=~/ESP8266_BIN diff --git a/tools/make_cert.py b/tools/make_cert.py index b417dcee..18435a4d 100644 --- a/tools/make_cert.py +++ b/tools/make_cert.py @@ -25,12 +25,11 @@ def main(): file_list = os.listdir(os.getcwd()) cert_file_list = [] for _file in file_list: - pos = _file.find(".cer") - if pos != -1: - cert_file_list.append(_file[:pos]) - + if _file.endswith(".cer") or _file.endswith(".key"): + cert_file_list.append(_file) + print cert_file_list for cert_file in cert_file_list: - with open(cert_file+".cer", 'rb') as f: + with open(cert_file, 'rb') as f: buff = f.read() cert_list.append(Cert(cert_file, buff)) with open('esp_ca_cert.bin', 'wb+') as f: