Commit Graph

4 Commits

Author SHA1 Message Date
jackcybertan
5df32992a0 WIFI-14904: Switch to mount-and-copy flow for /certificates
Update the certificates handling logic per reviewer feedback.

The updated flow:
- Mount /dev/mtdblock* (the certificates partition) to /mnt
- Copy its contents to /certificates
- Unmount /mnt
- Extract the PKI 2.0 certificates into /certificates

Signed-off-by: jackcybertan <jack.tsai@cybertan.com.tw>
2025-07-29 16:18:20 +08:00
jackcybertan
9919fded0f WIFI-14904 Enhance PKI enrollment on squashfs (SonicFi RAP6* series)
Ensure PKI2.0 certificates are properly backed up when /certificates is mounted as squashfs (read-only).
Enhance the persistent storage mechanism to retain PKI2.0 certificates across factory resets.

Following the current enrollment behavior, `operational.ca` and `operational.pem` - though restored to `/certificates` after a factory reset - are not directly used during enrollment.
The `est_client` will still download both certificates again as part of the enrollment process.
This patch does not modify that behavior, but simply ensures the certificates are persistently stored across resets.

Impacted models: SonicFi RAP6* series.

Signed-off-by: jackcybertan <jack.tsai@cybertan.com.tw>
2025-07-29 11:03:02 +08:00
John Crispin
ebdc88ee1f certificates: improvements
* make the code more generic
* add udaya a2 support

Signed-off-by: John Crispin <john@phrozen.org>
2025-07-28 09:50:22 +02:00
John Crispin
aa78f40843 certificates: add support for tar file based certificate storage
Fixes: WIFI-14694
Signed-off-by: John Crispin <john@phrozen.org>
2025-07-01 07:18:54 +02:00