Files
lucioandClaude Opus 5 dd608e6a20 Add Aruba InstantOS certificate update tool and hermes skill
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]>
2026-07-27 03:58:14 -07:00

15 lines
501 B
Bash

# Copy to ~/.config/aruba-ap-cert/.env and fill in. Never commit the real file.
# mkdir -p ~/.config/aruba-ap-cert && chmod 700 ~/.config/aruba-ap-cert
# cp .env.example ~/.config/aruba-ap-cert/.env
# chmod 600 ~/.config/aruba-ap-cert/.env
# AP portal address -- IP or hostname, with port (InstantOS uses 4343).
ARUBA_HOST=10.0.0.2:4343
# The same login you use for the AP's web portal.
ARUBA_USERNAME=admin
ARUBA_PASSWORD=
# Only if the private key file is encrypted.
#ARUBA_KEY_PASSPHRASE=