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):
- Certificate Retrieval API (RCDPv2) -
/rcdp/...- the protocol used by KeyTalk end-user agents to obtain certificates. Session-based (cookiekeytalkcookie), 3 phases: handshake, authentication, service provision. - Public API -
/public/...- unauthenticated (or certificate-parameter-based) informational calls. - 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. - Self-Service API -
/ssapi/...- S/MIME enrolment for external parties, authenticated purely via TLS client certificate + key. - Certificate Authority Retrieval API (CA API) -
/ca/...- fetch KeyTalk's internal trust chain certificates, unauthenticated.
- RCDPv2 uses a session cookie
keytalkcookie, returned by/rcdp/helloin aSet-Cookieheader and required on every subsequent RCDPv2 call in this session (excepthelloitself). This is modeled as thekeytalkCookieAuthAPI-key (cookie) security scheme. - The Administrator API is not documented as using the standard HTTP
Authorization: Basicheader. 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 fieldsauth-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", abasicAuth(http/basic) security scheme is declared for documentation completeness/tooling compatibility, but it is not actually placed in thesecurityrequirement of Administrator operations - the true credential transport is theauth-username/auth-passwordrequest-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
securityblock. - 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).
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.
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-nameon/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 tocertificates);restricted-san-domainsis present in/rcdp/csr-requirementsand/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):Operation Cluster admin Manager Operator SSL discovery mgr cert-enrollment, csr-enrolment-requirements, cert-revocation, intune-scep-config, create-seat Y Y - - cert-enrollment-for-csr, placed-order, copy-template Y Y - - settings, create-tenant, create-digicert-dv-acme-template, remove-template Y - - - import-certs Y - - Y archive-seat, open-slot, create-internal-ra-user, update-seats, remove-seat Y Y Y - enable-acme Y - - - /admapi/list-templatesreturned 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
/admapicalls 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-secondsand the/rcdp/certflags are JSON strings;imported,skipped,stored-*,smbcerts,template-names,address-books,historical-certs,messagesandsanare""instead of[]when empty.The CSR parameter (
csr) must be PEM text with BEGIN/END lines, not bare Base64 (HTTP 500 otherwise)./admapi/settingsreturnsapplication/octet-stream(a tar archive, 30 KB on the demo)./rcdp/tpm-attestationwith invalid evidence answers{"status":"eoc"};/rcdp/change-passwordwith a wrong old password answers HTTP 200 with{"status":"error","code":"1005"};/ca/<ver>/rootreturned 404 on this server; a CA fingerprint lookup succeeds regardless of the type segment used.Not exercised:
/public/rccdwith a valid UID (only the 400 "No RCCD found" path), and a non-emptyrestricted-san-domains.
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 returnedauth-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 theserversentry 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, thenHWSIG) returnedencrypted-challenge→ decrypted per the OpenSSL recipe in theRESPONSEfield's description →authenticationwith onlyRESPONSE(noUSERID/PASSWDat all) returnedauth-status: "OK"→ a subsequent/rcdp/certcall on that same session issued a fresh certificate. Found and corrected a real documentation bug in the process: see theRESPONSEproperty description underAuthenticationRequestfor the exact fix (the decrypted challenge'ssize#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, notkeytalkdemo.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 fordemo1.keytalkdemo.com:3000and has been excluded from theserverslist below; do not use it as a target host.