Skip to main content

LicenseRuntimeService.GetChallenge

Request a nonce for one operation and installation. This example starts a renewal. For initial activation supply the activation credential and publish the TXT record returned by the server.

LicenseRuntimeService · Vendor licensing runtime. The installation operator calls the configured licensing endpoint over TLS with its installation identity.

POST /prokrust.license.v1alpha1.LicenseRuntimeService/GetChallenge

Request fields​

GetChallengeRequest

JSON fieldTypeMeaning
credentialstringBootstrap credential issued for the license. Send it over TLS during initial activation. Later operations use the established activation identity.
licenseIdstringLicense identifier expected by the caller. During initial activation the server resolves the license from the credential and checks this value if supplied.
activationIdstringActivation returned by Activate. Send it for subsequent challenges. Leave it empty for initial activation.
installationIdstringStable identifier persisted by the operator for this installation. Reuse it across renewals and key rotations.
installationPublicKeystringCurrent installation Ed25519 public key, encoded as unpadded base64url. The server binds the challenge to this key.
operationstringChoose activate, renew, get, deactivate or rotate_key to bind the proof to the intended RPC.
newPublicKeystringReplacement Ed25519 public key, encoded as unpadded base64url. Set it only for rotate_key and use a different key from the current one.

Example request​

{
"licenseId": "license-example",
"activationId": "activation-example",
"installationId": "cluster-example",
"installationPublicKey": "11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo",
"operation": "renew"
}

Response fields​

GetChallengeResponse

JSON fieldTypeMeaning
challengeIdstringIdentifier to send with the signature when checking DNS or completing the requested operation.
noncestringFresh server value included in the signed proof. Use the nonce from this challenge.
dnsNamestringTXT record name for initial activation. Publish the exact returned name in the licensed domain.
dnsValuestringTXT record content for initial activation. Copy it verbatim so the server can verify domain ownership.
expiresAtint64Challenge expiry in Unix seconds. Obtain a fresh challenge if it expires before completion.
payloadJsonstringJSON string with the server-resolved challenge, license, installation and key identities. Parse this payload and include it with the nonce and operation in the canonical signed request.

Example response​

{
"challengeId": "53ff4a11-af97-4737-ab75-58731534fc9d",
"nonce": "SERVER_NONCE",
"expiresAt": "1800000600",
"payloadJson": "{\"challenge_id\":\"53ff4a11-af97-4737-ab75-58731534fc9d\",\"license_id\":\"license-example\",\"activation_id\":\"activation-example\",\"installation_id\":\"cluster-example\",\"installation_public_key\":\"11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo\",\"new_public_key\":\"\"}"
}