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
| JSON field | Type | Meaning |
|---|---|---|
credential | string | Bootstrap credential issued for the license. Send it over TLS during initial activation. Later operations use the established activation identity. |
licenseId | string | License identifier expected by the caller. During initial activation the server resolves the license from the credential and checks this value if supplied. |
activationId | string | Activation returned by Activate. Send it for subsequent challenges. Leave it empty for initial activation. |
installationId | string | Stable identifier persisted by the operator for this installation. Reuse it across renewals and key rotations. |
installationPublicKey | string | Current installation Ed25519 public key, encoded as unpadded base64url. The server binds the challenge to this key. |
operation | string | Choose activate, renew, get, deactivate or rotate_key to bind the proof to the intended RPC. |
newPublicKey | string | Replacement 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
| JSON field | Type | Meaning |
|---|---|---|
challengeId | string | Identifier to send with the signature when checking DNS or completing the requested operation. |
nonce | string | Fresh server value included in the signed proof. Use the nonce from this challenge. |
dnsName | string | TXT record name for initial activation. Publish the exact returned name in the licensed domain. |
dnsValue | string | TXT record content for initial activation. Copy it verbatim so the server can verify domain ownership. |
expiresAt | int64 | Challenge expiry in Unix seconds. Obtain a fresh challenge if it expires before completion. |
payloadJson | string | JSON 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\":\"\"}"
}