Your suggested change has been received. Thank you.

close

Suggest A Change

https://thales.na.market.dpondemand.io/docs/dpod/services/kmo….

back

Related APIs

Signing Private Keys (privatekeysign)

search

Please Note:

Signing Private Keys (privatekeysign)

The POST /v1/cckm/GoogleWorkspaceCSE/endpoints/{id}/privatekeysign API is called to sign the Gmail message digest. This API returns the base64 encoded signature.

Syntax

curl -k 'https://127.0.0.1/api/v1/cckm/GoogleWorkspaceCSE/endpoints/{id}/privatekeysign' -H 'Content-Type: application/json' --data-binary $'{\n  "wrapped_private_key": "<wrapped private key>",\n  "authorization": "<authorization jwt>",\n  "authentication": "<authentication jwt>",\n "algorithm": "<algorithm>",\n  "digest": "<digest>",\n "reason": ""\n}' --compressed

Request Parameters

ParameterTypeDescription
idstringID of the endpoint. To find out the ID of an endpoint, refer to Viewing KACLS Endpoints.
algorithmstringSigning algorithm used to generate a signature.
digeststringThe base64 encoded message digest.
wrapped_private_keystringThe base64 encoded wrapped private key.
authorizationstringA JWT asserting that the user is allowed to unwrap the private key.
authenticationstringA JWT issued by a third-party asserting who the user is.
reasonstringAdditional information about the operation.
rsa_pss_salt_lengthintThe salt length to use if the signature algorithm is RSASSA-PSS.

Example Request

curl -k 'https://127.0.0.1/api/v1/cckm/GoogleWorkspaceCSE/endpoints/7d03-4e2d-c1583936-a0ae-3a1ae2d2e200/privatekeysign' -H 'Content-Type: application/json' --data-binary $'
{
    "wrapped_private_key": "wHrlNOTI9mU6PBdqiq7EQA...",
    "digest": "EOBc7nc+7JdIDeb0DVTHriBAbo/dfHFZJgeUhOyo67o=",
    "authorization": "eyJhbGciOi...",
    "authentication": "eyJhbGciOi...",
    "algorithm": "SHA256withRSA",
    "reason": "sign"
}' --compressed

Example Response

{
"signature":
    "LpyCSy5ddy82PIp/87JKaMF4Jmt1KdrbfT1iqpB7uhVd3OwZiu+oq8kxIzB7Lr0iX4aOcxM6HiUyMrGP2P
    G8x0HkpykbUKQxBVcfm6SLdsqigT9ho5RYw20M6ZXNWVRetFSleKex4SRilTRny38e2ju/lUy0KDaCt1hDU
    T89nLZ1wsO3D1F3xk8J7clXv5fe7GPRd1ojo82Ny0iyVO7y7h1lh2PACHUFXOMzsdURYFCnxhKAsadccCxp
    CxKh5x8p78PdoenwY1tnT3/X4O/4LAGfT4fo98Frxy/xtI49WDRNZi6fsL6BQT4vS/WFkybBX9tXaenCqlR
    BDyZSFhatPQ=="
}

Response Codes

Response CodeDescription
2xxSuccess
4xxClient errors

Refer to HTTP status codes for details.