-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pre_encrypted_ota): Added HTTPS server in pytest #461
base: master
Are you sure you want to change the base?
feat(pre_encrypted_ota): Added HTTPS server in pytest #461
Conversation
Hi @mahavirj, tested this server locally, with simple download as well as partial download. Both works fine. Used the same ca_cert.pem and ca_key.pem which is used esp_https_server. |
4706b8d
to
8428dcc
Compare
@mahavirj PTAL |
8428dcc
to
a3d119e
Compare
@mahavirj Removed the certs directory from the tests dir, instead used server_cert dir for certs. And fixed some cosmetic changes in test_local_server_ota.c |
a3d119e
to
3112760
Compare
@mahavirj PTAL, updated the pytest and README.md file. In README.md mentioned about creating server_cert directory and certificates and if user do not pass the server_cert directory then script will use hardcoded certificates. |
3112760
to
39f6f86
Compare
1. Added the python based HTTPS server in pytest to start the https server locally. 2. Updated the README.md file 3. Fixed some cosmetic changes in test_local_server_ota.c
39f6f86
to
5f3d865
Compare
@@ -8,4 +8,4 @@ CONFIG_ESP_HTTPS_OTA_DECRYPT_CB=y | |||
# Certificate bundle configuration | |||
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN=y | |||
CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE=y | |||
CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE_PATH="server_certs/ca_cert.pem" | |||
CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE_PATH="main/tests/certs/servercert.pem" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would the command from README update this file? If not, then how the new server certificate would be embedded on firmware side?
Description