mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-16 17:01:37 +00:00
certificates: copy all certificates at boot
Modify early_boot init script to copy all .pem and .ca files from /certificates/ to /etc/ucentral/ instead of only operational.pem and operational.ca. This enables support for multiple trust chains where certificates are stored with FQDN-based names (e.g., controller.example.com.pem) alongside the traditional operational.pem. The simple wildcard copy allows air-gapped deployments to maintain certificates for multiple controllers without complex logic. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
90e2f3452d
commit
4865aabdb3
@ -5,7 +5,7 @@ START=09
|
||||
copy_certificates() {
|
||||
[ -f /certificates/key.pem ] || return
|
||||
|
||||
cp /certificates/cert.pem /certificates/key.pem /certificates/operational.* /etc/ucentral/
|
||||
cp /certificates/*.pem /certificates/*.ca /etc/ucentral/ 2>/dev/null || true
|
||||
chown root.network /etc/ucentral/*.pem /etc/ucentral/*.ca
|
||||
chmod 0440 root.network /etc/ucentral/*.pem /etc/ucentral/*.ca
|
||||
[ -f /certificates/gateway.json ] && cp /certificates/gateway.json /etc/ucentral/gateway.flash
|
||||
|
||||
Loading…
Reference in New Issue
Block a user