mirror of
https://github.com/Telecominfraproject/wlan-ucentral-schema.git
synced 2026-01-27 10:23:38 +00:00
This implements secure download by adding additional fields to the
upgrade command payload:
- use-local-certificates (boolean): When provided, enables secure download
and if true uses built-in certificates, if false requires below fields
- ca-certificate (string): base64 encoded cas.pem
- certificate (string): base64 encoded cert.pem
- private-key (string): base64 encoded key.pem
The following additional changes are included:
- Switches from wget to curl for downloading as curl supports using
certificates and in general seems more reliable
- An automatic download retry was added before reporting the failure
- When download fails, provides both exit code & http code to the cloud
Fixes: WIFI-14643
Signed-off-by: Paul White <paul@shasta.cloud>