KeyTalk logo
KeyTalk API Reference Certificate & Key Management

KeyTalk API (2.8.10)

KeyTalk certificate and key management & enrolment virtual appliance - REST API.

This specification covers five distinct API groups exposed by a KeyTalk server, extracted from the "KeyTalk - Protocols" reference document (document version 2.8.9, last updated 2026-07-15):

  1. Certificate Retrieval API (RCDPv2) - /rcdp/... - the protocol used by KeyTalk end-user agents to obtain certificates. Session-based (cookie keytalkcookie), 3 phases: handshake, authentication, service provision.
  2. Public API - /public/... - unauthenticated (or certificate-parameter-based) informational calls.
  3. Administrator API - /admapi/... - management calls used by the KeyTalk Web Admin Interface, authenticated with either a username/password pair supplied as request body fields, or a TLS client certificate.
  4. Self-Service API - /ssapi/... - S/MIME enrolment for external parties, authenticated purely via TLS client certificate + key.
  5. Certificate Authority Retrieval API (CA API) - /ca/... - fetch KeyTalk's internal trust chain certificates, unauthenticated.

Notes on authentication modeling

  • RCDPv2 uses a session cookie keytalkcookie, returned by /rcdp/hello in a Set-Cookie header and required on every subsequent RCDPv2 call in this session (except hello itself). This is modeled as the keytalkCookieAuth API-key (cookie) security scheme.
  • The Administrator API is not documented as using the standard HTTP Authorization: Basic header. Per section 4.2: "All the API calls should be authenticated using credentials of the Web Admin Interface (username/password or a client certificate)" - and every example in the document passes credentials as the ordinary POST body fields auth-username / auth-password (see each operation's request body), OR alternatively via a mutual-TLS client certificate (curl --cert/--key). Because OpenAPI 3.0.3 has no clean way to model "mutual TLS OR body-embedded credentials", a basicAuth (http/basic) security scheme is declared for documentation completeness/tooling compatibility, but it is not actually placed in the security requirement of Administrator operations - the true credential transport is the auth-username/auth-password request-body properties, which are marked optional on every Administrator operation ("required if the webserver is configured with username/password authentication"; otherwise a client certificate presented at the TLS layer is used). This is flagged explicitly because it deviates from conventional HTTP Basic auth.
  • The Self-Service API requires a TLS client certificate + private key for the whole connection (mutual TLS) - there is no bearer/basic header either. This is documented in each Self-Service operation's description; OpenAPI 3.0.3 has no first-class mutual-TLS security scheme, so this is captured as a textual requirement rather than a security block.
  • The Public API and CA API require no authentication at all (some Public API calls take a certificate as a regular request parameter, purely for identification purposes, not as an auth credential).

Notes on <version> path segments

RCDPv2, Public API and Administrator API all support two forms of every path: /xxx/<action> (uses the latest protocol version supported by the server) and /xxx/<version>/<action> (pins a specific protocol version). Both forms are modeled below as sibling paths: a version-less "latest" alias and a {version}-templated path.

Live Validation - firmware 8.1.9 pass (2026-11-23)

Source document: "KeyTalk - Protocols" document version 2.8.10 (last updated 2026-09-07), which already contains the earlier corrections (RESPONSE size# stripping, string-typed booleans, empty-string-for-empty-array, etc.). Target: https://demo1.keytalkdemo.com - server 8.1.9, RCDP protocol 2.8.6, Administrator API 1.9.9. All test objects were created with the test_openapi_ prefix and removed afterwards.

  • New in 8.1.x, confirmed working: seat-name on /admapi/import-certs (without it the already-known certificate was skipped; with it the certificate was imported under the named seat, including onto an existing seat, and with a PEM private key appended to certificates); restricted-san-domains is present in /rcdp/csr-requirements and /admapi/csr-enrolment-requirements (returned "" because no restriction was configured).

  • Roles tested with four username/password Web Admin accounts (Cluster Admin, Manager, Operator, SSL Discovery Manager). Calls a role may not make fail with HTTP 400 "<role> is not allowed to ... via admin API". Observed matrix (Y = permitted, - = refused):

    OperationCluster adminManagerOperatorSSL discovery mgr
    cert-enrollment, csr-enrolment-requirements, cert-revocation, intune-scep-config, create-seatYY--
    cert-enrollment-for-csr, placed-order, copy-templateYY--
    settings, create-tenant, create-digicert-dv-acme-template, remove-templateY---
    import-certsY--Y
    archive-seat, open-slot, create-internal-ra-user, update-seats, remove-seatYYY-
    enable-acmeY---
  • /admapi/list-templates returned HTTP 400 "Administrator REST API calls are disabled for the given template" for the Cluster Admin account even though the Administrator API was enabled on the test template; it could not be made to succeed with the available accounts, so its 200 response shape is documentation-only.

  • Per-template switch: Administrator API / Self-Service API must be ticked under the template's REST API Settings (RCDPv2 and Public API are on by default) or /admapi calls for that template are refused.

  • Self-Service API (/ssapi) needs a TLS client certificate on the connection; the browser-based test client could not present one, so it was not exercised in this pass. The certificate-based seat-wide RCDP re-authentication was verified on 8.1.4 (see above) and was not re-run on 8.1.9.

  • Type quirks confirmed again on 8.1.9 (reflected in the schemas): num-revoked-certs, archived, removed, threshold-seconds and the /rcdp/cert flags are JSON strings; imported, skipped, stored-*, smbcerts, template-names, address-books, historical-certs, messages and san are "" instead of [] when empty.

  • The CSR parameter (csr) must be PEM text with BEGIN/END lines, not bare Base64 (HTTP 500 otherwise).

  • /admapi/settings returns application/octet-stream (a tar archive, 30 KB on the demo). /rcdp/tpm-attestation with invalid evidence answers {"status":"eoc"}; /rcdp/change-password with a wrong old password answers HTTP 200 with {"status":"error","code":"1005"}; /ca/<ver>/root returned 404 on this server; a CA fingerprint lookup succeeds regardless of the type segment used.

  • Not exercised: /public/rccd with a valid UID (only the 400 "No RCCD found" path), and a non-empty restricted-san-domains.

Earlier validation pass - firmware 8.1.4 (2026-07-30)

The sections below are the original pass against server 8.1.4, kept for history; where they differ from the 8.1.9 section above, the 8.1.9 results apply.

This specification was live-tested against a real KeyTalk demo deployment across two passes, each using a disposable KeyTalk-provided test seat account (account names/passwords intentionally omitted from this public document). Results:

  • Target: https://demo1.keytalkdemo.com - KeyTalk server v8.1.4, RCDP protocol v2.8.5.
  • Full RCDPv2 certificate-retrieval flow confirmed end-to-end and working, twice, with two different test seat accounts: hello → handshake → auth-requirements (service=Internal_server_auth) → authentication (credential types USERID, HWSIG, PASSWD; server returned auth-status: "OK" both times) → last-messages → csr-requirements → cert (format=PEM; server returned a real issued X.509 certificate plus a private key both times). Second pass also confirmed the flow works when calling the version-less host with no explicit port (https://demo1.keytalkdemo.com/), matching the servers entry below exactly.
  • Public API confirmed working: /public/version (returned {"status":"version","version":"8.1.4"}), /public/health-check (returned {"status":"health-check","check-result":"operational"}), /public/cn-customization-policy, /public/cert-expiration-margin.
  • Administrator API (/admapi/list-templates) is reachable at the correct path and port (https://demo1.keytalkdemo.com:3000), but the test account's template does not have Administrator REST API access enabled, so the call returned a scoped HTTP 400 ({"status":"error","error":"Administrator REST API calls are disabled for the given template"}) rather than data. The request/response shape still matched this spec - this is a real business-logic rejection, not a routing/404 failure, and it confirms the path + port are correct.
  • Both test accounts authenticate as RCDPv2 seats under the template Internal_server_auth - neither is an Administrator API or Web Admin GUI user/credential. Nothing elsewhere in this spec should be read as implying either account works for /admapi/... calls.
  • Certificate-based seat-wide re-authentication confirmed working (2026-07-30, third pass), using a previously-issued seat certificate/key pair supplied out of band (the RCDPv2 session cookie needed to decrypt a certificate's private key in-band is HttpOnly and inaccessible to browser-based automation, so this step used a certificate provided directly rather than one decrypted live): auth-requirements (seat mode: USERID + computer-name, then HWSIG) returned encrypted-challenge → decrypted per the OpenSSL recipe in the RESPONSE field's description → authentication with only RESPONSE (no USERID/PASSWD at all) returned auth-status: "OK" → a subsequent /rcdp/cert call on that same session issued a fresh certificate. Found and corrected a real documentation bug in the process: see the RESPONSE property description under AuthenticationRequest for the exact fix (the decrypted challenge's size# prefix must be stripped before sending, contrary to the source document's wording). This is KeyTalk's certificate-based re-authentication mode - it runs over ordinary HTTPS, using the certificate only to decrypt an application-layer challenge, not as a TLS client certificate presented during the handshake (RCDPv2 has no genuine mutual-TLS mode; true mTLS is used only by the Self-Service API and optionally the Administrator API, per their respective sections above).
  • Templates present on the demo server (for reference): ACME_DigiCert_GeoTrust_demo, ACME_GeoTrust, Demo-TLS-PrivateCA, Digicert_Basic_OV, Internal_server_auth (used above), Internal_server_auth_II, KeyTalk_Demo_SMIMI_DigiCert, User_Certificate.
  • https://demo1.keytalk.com:3000 (note: keytalk.com, not keytalkdemo.com) - one of the three URLs originally supplied for validation - is completely unreachable (DNS/connection failure, no HTTP response at all; confirmed via direct browser navigation showing a connection-error page). This appears to be a typo for demo1.keytalkdemo.com:3000 and has been excluded from the servers list below; do not use it as a target host.
Overview
License
Public (per document data classification)
Servers
KeyTalk demo/test server - confirmed live and working 2026-07-30 (default HTTPS port 443). Serves RCDPv2 (`/rcdp/...`), Public API (`/public/...`), Self-Service API (`/ssapi/...`) and CA API (`/ca/...`) paths. The Administrator API (`/admapi/...`) instead lives on port 3000 - see the per-path `servers` override on those operations.
https://demo1.keytalkdemo.com
Plain HTTP alias of the same host - confirmed live 2026-07-30, redirects to the https version. Kept as a documented alias (e.g. for out-of-band certificate downloads).
http://demo1.keytalkdemo.com