Bug 785 - WebUI Certificate reverts to default self signed in LLB instance after the reboot
Review Request #353 — Created July 19, 2024 and updated — Latest diff uploaded
| Information | |
|---|---|
| kevin.poh | |
| APV10 | |
| rel_apv_10_7 | |
| 785 | |
| Reviewers | |
| timlai, weikai | |
File edited:
1. usr/click/bin/ha_domain/domain.c
(Correct the syntax error in the function load_sync_config_cli_real() to ensure that synconfig runs properly.)
2. usr/click/bin/sync/remote
(Make a duplicate of the certificate before running sync script (which cause the certificate to be deleted). And overwrite the certificate after sync is complete.)The first idea is to :
- Check on clear_webui_config() -> which will be run during CLI command clear config secondary / primary
- clear_webui_config (called on sys_tool.c, the body of this function is on webui.c)
- clear_webui_config will call -> webui_ssl_clear_cert(),
but if we just remove this it might affect the system architecture
Testing using two vAPVs which have the HA environment:
1. Import WebUI Certificate on both devices
(System > Access Control > WebUI Certificate)
2. Save memory on both devices.
3. Perform reboot on the first device (primary).
(System > System Management > System Shutdown/Reboot > Reboot)
4. Check the primary APV for the WebUI Certificate
(Before the provided, solution the certificate will revert to default)
