REST API
All requests go to %s. Send JSON and get JSON; errors come as {"error": "..."} with a 4xx status.
POST /api/v1/token
Body: {"client_id": "...", "client_secret": "..."}. Answer:
{"access_token": "kt_...", "token_type": "Bearer", "expires_in": 3600}.
POST /api/v1/accounts/{account}/profiles/{profile}/sign
Header Authorization: Bearer TOKEN. Body:
{"digest": "64 hex digits", "file": "name for the signing log (optional)"}. The digest is the SHA-256 of what is signed; for a
PE file, the DER of the signed attributes as a SET OF. Answer: {"signature": "base64 DER ECDSA-Sig-Value", "algorithm":
"ecdsa-with-SHA256", "chain": ["base64 DER signing certificate", "base64 DER Kinode LLC Developers"], "serial": "hex"}.
GET /api/v1/accounts/{account}/profiles/{profile}
Same header. The profile's name, type, status and subject.
POST /tsa
RFC 3161 time stamps, see Time stamps. No token needed.
GET /pki/root.pem, /pki/developers.pem, /pki/timestamps.pem
The certificates of the hierarchy.
GET /pki/revoked
The revocation list PCs fetch: a text body of serial HEX FROM lines, where FROM is the unix time
from which the certificate is refused, followed by a Kinode signature block signed by Kinode LLC Developers.