9472cfff8d
- ca.sign_csr's identity parameter renamed to `common_name`, fully decoupled from device_id. - New resolve_common_name(): CN comes from the device's own CSR: falls back to device_id only if the CSR has no CN (malformed request). - Renewal unaffected: a renewed cert always keeps the CN of the device's current, still-valid cert, regardless of what the renewal CSR claims (verified against an adversarial CSR asserting a different CN). - device_id remains the sole storage key (pending/issued/revoked) and MQTT topic routing key, and must still be unique per physical device even when CN is deliberately shared across many. - /api/pending and /api/issued now also expose the CSR-resolved CN for display, without changing what's actually stored. No topic structure changes. No new MQTT payload fields.
616 B
616 B
Changelog
0.4.2
- Certificate Common Name (CN) is now taken from each device's own
CSR instead of being forced to equal its
device_id. Enables deployments where many devices intentionally share one CN per category (e.g. for broker ACL grouping) while each still uses its own unique MQTT topic. GET /api/pendingandGET /api/issuednow include the resolved CN alongsidedevice_idfor each entry.
0.4.1
- Changed SAN default for generating server certificate
- Added two new options for organizations
0.4.0
- Replaced RSA algorithm with EC for encryption.
0.3.0
- Initial release.