SenseCrypt Docs
API ReferenceAdmin Oidc Apps

Add Tls Anchor

POST/v1/admin/oidc-apps/{client_id}/trust-anchors

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

client_id*Client Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

One tls_client_auth trust anchor (#1505 step 3): exactly one PEM CA certificate, held to the same registration gate as the whole-bundle field (mtls.validate_trust_anchors — a CA the verifier can terminate a chain at, no directoryName name constraint).

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/admin/oidc-apps/string/trust-anchors" \  -H "Content-Type: application/json" \  -d '{    "pem": "string"  }'
{  "id": "string",  "kind": "jwk",  "kid": "string",  "kty": "string",  "alg": "string",  "thumbprint": "string",  "state": "current",  "created_at": "2019-08-24T14:15:22Z",  "created_by": "string",  "retired_at": "2019-08-24T14:15:22Z",  "revoked_at": "2019-08-24T14:15:22Z",  "revoke_reason": "string",  "reactivatable_until": "2019-08-24T14:15:22Z",  "jwk": {},  "pem": "string",  "not_after": "2019-08-24T14:15:22Z"}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}