Add HTTPS identity rotation support
This commit is contained in:
@@ -109,11 +109,8 @@ static esp_err_t owner_perform(const admin_ssh_console_token_t *token,
|
||||
/* The owner mask routes this crypto/NVS path to the 12KiB dispatcher.
|
||||
* Commit before restart; a failed stop retains HTTPD ownership and must
|
||||
* not be followed by start. No socket IO or console handler calls here. */
|
||||
esp_err_t error = web_security_rotate_certificate();
|
||||
if (error != ESP_OK) return error;
|
||||
error = web_server_stop();
|
||||
if (error != ESP_OK) return error;
|
||||
return web_server_start();
|
||||
bool committed = false;
|
||||
return web_server_replace_identity(0, 0, false, &committed);
|
||||
}
|
||||
if (action == ADMIN_CONSOLE_DEFER_WEB_STOP) return web_server_stop();
|
||||
if (action == ADMIN_SSH_DEFER_REBOOT) {
|
||||
|
||||
Reference in New Issue
Block a user