Automates pushing a renewed TLS certificate to an Aruba InstantOS AP and
pointing the Web UI certificate usage at it, replacing the manual
Maintenance -> Certificates flow.
Commands: status, check-caddy, check-ap, update. `update` is idempotent,
so it is safe to run on a schedule.
The /swarm.cgi API was reverse-engineered from the InstantOS 8.x web UI
bundle and verified against live hardware. Four behaviours documented in
the README each silently break a naive implementation:
- scalars return as <data name=".."> rather than named tags, including
the login sid
- cert types are ServerCert/TrustedCA/ClientCert/PublicCert; the
server_cert values in the bundle are overwritten at runtime
- uploads are synchronous and the POST body is the only real result;
upload_status returns not_available even for uploads that succeeded
- the AP closes TLS without close_notify, which OpenSSL 3 rejects
Credentials are read from ~/.config/aruba-ap-cert/.env, outside the repo.
Co-Authored-By: Claude Opus 5 <[email protected]>