mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 04:25:32 +00:00
esp_http_client: add support for using certs from global ca store
Closes https://github.com/espressif/esp-idf/issues/3062
This commit is contained in:
@@ -36,8 +36,8 @@ esp_err_t esp_https_ota(const esp_http_client_config_t *config)
|
||||
}
|
||||
|
||||
#if !CONFIG_OTA_ALLOW_HTTP
|
||||
if (!config->cert_pem) {
|
||||
ESP_LOGE(TAG, "Server certificate not found in esp_http_client config");
|
||||
if (!config->cert_pem && !config->use_global_ca_store) {
|
||||
ESP_LOGE(TAG, "Server certificate not found, either through configuration or global CA store");
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user