From fbe4457a718336c1514d5f36a7bd7570ab8a7a5f Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Sun, 13 Feb 2022 20:36:07 +0530 Subject: [PATCH] examples/ota: fix README for instructions on hosting image on github.com server Ref: https://esp32.com/viewtopic.php?f=13&t=26076 --- examples/system/ota/README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/examples/system/ota/README.md b/examples/system/ota/README.md index 9354b5cd0b..9704c8558f 100644 --- a/examples/system/ota/README.md +++ b/examples/system/ota/README.md @@ -158,4 +158,17 @@ $ python example_test.py build 8070 Starting HTTPS server at "https://:8070" 192.168.10.106 - - [02/Mar/2021 14:32:26] "GET /simple_ota.bin HTTP/1.1" 200 - ``` -* Publish the firmware image on a public server (e.g. github.com) and copy its root certificate to the `server_certs` directory as `ca_cert.pem`. (The certificate can be downloaded using the `s_client` openssl command if the host includes the root certificate in the chain, e.g. `openssl s_client -showcerts -connect github.com:443 ca_cert.pem +``` + +Please note that URL used here is `raw.githubusercontent.com`. This URL allows raw access to files hosted on github.com repository. Additionally, command above copies last certificate from chain of certs as the CA root cert of server. + +--- +**NOTE** + +For examples using certificate bundle approach (e.g., `simple_ota_example`), it already has most common root certificates and hence there is no need to add any additional certs. + +---