Phase 4

Publish the governed issuance profile

Publish a REST API profile bound to the approved issuing CA, the delegated team's token, and its DNS namespace, and confirm that no other profile accepts that token.

Phase details

Workstream
Profile and issuance · Step 1 of 2
Time
30 minutes
Setup
One-time setup
Goal
An active REST API profile in the team's business unit issues only from the approved issuing CA, only for the delegated team's token, and only for DNS names in the team's namespace. No other profile accepts that token.
Inputs
admin_api_tokenaccount_idbusiness_unit_idica_idapi_token_idfqdn_allow_pattern
Expected outputs
profile_idprofile-request.json

Use DigiCert® Trust Lifecycle Manager to create the certificate profile the delegated team requests certificates from. The central PKI team runs this phase with its setup credential.

The profile binds:

  • One business unit.
  • One approved issuing CA from DigiCert® Private CA.
  • The delegated team’s token from DigiCert® Account Manager.
  • An FQDN allow-list for the team’s DNS namespace.

After you create it, confirm that no other profile in the account accepts the delegated team’s token.

Phase prerequisites

Make sure you have:

Endpoints used

MethodPathPurpose
POST/mpki/api/v1/profileCreate the token-bound REST API profile.
GET/mpki/api/v2/profile/{profile_id}Verify the profile’s status, business unit, certificate settings, and token binding.
GET/mpki/api/v2/profileList the profiles that bind the delegated team’s token, and the account’s other REST API profiles.

Step 4.1: Create the token-bound profile

Create the profile from the Generic Private Server Certificate base template. Each setting applies one governance decision:

FieldValue in this manualGovernance decision
namePrivate TLS - payments-platform - non-production - REST APIThe name states trust type, scope, environment, and enrollment method.
descriptionOwner, purpose, and next review dateEvery profile has a named owner and review cadence.
business_unit_idbusiness_unit_idThe profile issues only in the team’s business unit.
template_id495737f6-f819-4cc8-8c83-94fbd62af489The Generic Private Server Certificate base template.
ica.idica_idThe profile issues only from the approved issuing CA.
enrollment_methodrest_apiCertificate issuance through POST /mpki/api/v1/certificate requires rest_api.
authentication_methodthird_party_appCertificate issuance through POST /mpki/api/v1/certificate requires third_party_app.
seat_id_mappingcommon_nameEach server name maps to its own seat.
renewal_window_days30Certificates can be renewed during the 30 days before they expire.
cert_delivery_formatx509Issued certificates arrive as PEM, which the path validation in Issue and evidence a governed certificate expects.
api_token_binding_enabledtrueOnly listed tokens can use the profile.
api_token_ids[api_token_id]The delegated team’s token is the only listed token.
allowed_fqdn_regexA pattern for the team’s namespace, and a rejection messageRequested SAN DNS names must fall inside the team’s namespace.
tagsprivate-tls, payments-platform, non-productionTags identify every certificate issued from the profile.

The fields array fixes the certificate contents. Set the key and algorithm values to the cryptographic baseline for the criticality tier of the services the profile covers. The DigiCert® Trust Architecture Playbook’s profile baseline requires stronger keys for the tiers where a compromised key does the most damage, and its criticality tiers define which services belong in each tier:

Criticality tierTypical servicesKey baseline
tier0, tier1Customer-facing, regulated, identity-core, and enterprise-critical servicesRSA 3072, ECDSA P-256, or ECDSA P-384
tier2, tier3Standard internal services, legacy systems, and lab systemsRSA 2048 or stronger

This manual uses these values:

Fields keySourceValue in this manual
validity.duration_unitfixed_valuedays
validity.duration_valuefixed_value90, or the validity your rotation capability supports
signature_algorithmfixed_valuesha256WithRSA, or sha384WithECDSA for ECDSA keys
key_sizefixed_valueRSA 3072, or ECDSA P-256
extensions.key_usage.criticalfixed_valuetrue
extensions.key_usage.additional_valuesfixed_valuedigital_signature and key_encipherment, or digital_signature only for ECDSA keys
csrrest_requestRequired in every request
subject.common_namerest_requestThe server name
extensions.extended_key_usage.criticalfixed_valuefalse
extensions.extended_key_usage.additional_valuesfixed_valueserver_authentication
extensions.san.dns_namesrest_requestThe server name
extensions.ski_extension.valuesfixed_valueinclude
extensions.aki_extension.valuesfixed_valueinclude

Two kinds of fields entries need more than the table shows:

  • Key usage. List each fixed value as its own source in sources. Also list the values the key type permits, in rsa_possible_values for RSA keys or ecdsa_possible_values for ECDSA keys. Without that list, the request fails with 400 and “Extra KU values not allowed by current key type”.
  • Key identifiers. extensions.ski_extension.values and extensions.aki_extension.values add the subject and authority key identifier extensions, which issued certificates otherwise lack.

A certificate from this profile carries exactly one SAN DNS name, so each server name gets its own certificate. Every request must supply that name in attributes.extensions.san.dns_names, even though the field is optional. The profile doesn’t use SANs from the CSR.

Test the FQDN allow-list pattern

Before you create the profile, test the pattern locally against names it must accept and names it must reject. allowed_fqdn_regex must match the whole SAN DNS name, and grep -x matches the whole line the same way. This is a local command, the same for both the cURL and Python paths:

FQDN_ALLOW_PATTERN='^([a-z0-9-]+\.)*payments\.example\.com$'
printf '%s\n' api.payments.example.com payments.example.com.attacker.example api.other.example.com |
  grep -Ex "${FQDN_ALLOW_PATTERN}"

Only api.payments.example.com prints. The guardrail tests in Validate the guardrails confirm that the profile enforces the pattern the same way.

The FQDN allow-list doesn’t check the common name. Trust Lifecycle Manager issues a certificate whose SAN DNS names match the pattern even when its common name is outside the namespace. The delegated team’s request sets the common name to one of its SAN DNS names, and Monitoring flags common names outside the namespace.

Create the profile

Create the profile, and save the request body as profile-request.json. Replace the name, description, pattern, message, and tags with your team’s:

jq -n \
  --arg account_id "${ACCOUNT_ID}" \
  --arg business_unit_id "${BUSINESS_UNIT_ID}" \
  --arg ica_id "${ICA_ID}" \
  --arg api_token_id "${API_TOKEN_ID}" \
  '{
    name: "Private TLS - payments-platform - non-production - REST API",
    description: "Owner: payments platform team. Purpose: non-production TLS for payments.example.com. Next review: 2027-01-31.",
    account_id: $account_id,
    business_unit_id: $business_unit_id,
    template_id: "495737f6-f819-4cc8-8c83-94fbd62af489",
    ica: {id: $ica_id},
    enrollment_method: "rest_api",
    authentication_method: "third_party_app",
    seat_id_mapping: "common_name",
    renewal_window_days: 30,
    cert_delivery_format: "x509",
    api_token_binding_enabled: true,
    api_token_ids: [$api_token_id],
    allowed_fqdn_regex: [
      {
        pattern: "^([a-z0-9-]+\\.)*payments\\.example\\.com$",
        message: "Names must be within payments.example.com."
      }
    ],
    tags: ["private-tls", "payments-platform", "non-production"],
    fields: [
      {
        key: "validity.duration_unit",
        type: "string",
        input: "dropdown",
        optional: false,
        multiple: false,
        sources: [
          {source: "fixed_value", value: "days"}
        ]
      },
      {
        key: "validity.duration_value",
        type: "number",
        input: "number",
        optional: false,
        multiple: false,
        min: 90,
        max: 90,
        sources: [
          {source: "fixed_value", value: 90}
        ]
      },
      {
        key: "signature_algorithm",
        type: "string",
        input: "dropdown",
        optional: false,
        multiple: false,
        sources: [
          {source: "fixed_value", value: "sha256WithRSA"}
        ]
      },
      {
        key: "key_size",
        type: "string",
        input: "dropdown",
        optional: false,
        multiple: true,
        sources: [
          {source: "fixed_value", value: "RSA 3072"}
        ]
      },
      {
        key: "extensions.key_usage.critical",
        type: "boolean",
        input: "checkbox",
        optional: false,
        multiple: false,
        sources: [
          {source: "fixed_value", value: true}
        ]
      },
      {
        key: "extensions.key_usage.additional_values",
        type: "string",
        input: "multiselect",
        optional: false,
        multiple: true,
        rsa_possible_values: [
          "digital_signature",
          "non_repudiation",
          "key_encipherment",
          "data_encipherment"
        ],
        sources: [
          {source: "fixed_value", value: "digital_signature"},
          {source: "fixed_value", value: "key_encipherment"}
        ]
      },
      {
        key: "csr",
        type: "string",
        input: "textarea",
        optional: false,
        multiple: false,
        sources: [
          {source: "rest_request"}
        ]
      },
      {
        key: "subject.common_name",
        type: "string",
        input: "text",
        optional: true,
        multiple: false,
        sources: [
          {source: "rest_request"}
        ]
      },
      {
        key: "extensions.extended_key_usage.critical",
        type: "boolean",
        input: "checkbox",
        optional: false,
        multiple: false,
        sources: [
          {source: "fixed_value", value: false}
        ]
      },
      {
        key: "extensions.extended_key_usage.additional_values",
        type: "string",
        input: "multiselect",
        optional: false,
        multiple: true,
        sources: [
          {source: "fixed_value", value: "server_authentication"}
        ]
      },
      {
        key: "extensions.san.dns_names",
        type: "string",
        input: "text",
        optional: true,
        multiple: true,
        sources: [
          {source: "rest_request"}
        ]
      },
      {
        key: "extensions.ski_extension.values",
        type: "string",
        input: "text",
        optional: true,
        multiple: false,
        sources: [
          {source: "fixed_value", value: "include"}
        ]
      },
      {
        key: "extensions.aki_extension.values",
        type: "string",
        input: "text",
        optional: true,
        multiple: false,
        sources: [
          {source: "fixed_value", value: "include"}
        ]
      }
    ]
  }' > profile-request.json
curl --fail-with-body --silent --show-error \
  -X POST "https://demo.one.digicert.com/mpki/api/v1/profile" \
  -H "x-api-key: ${ADMIN_API_TOKEN}" \
  -H "Content-Type: application/json" \
  --data-binary @profile-request.json \
  -o profile.json
profile_request = {
    "name": "Private TLS - payments-platform - non-production - REST API",
    "description": "Owner: payments platform team. Purpose: non-production TLS for payments.example.com. Next review: 2027-01-31.",
    "account_id": account_id,
    "business_unit_id": business_unit_id,
    "template_id": "495737f6-f819-4cc8-8c83-94fbd62af489",
    "ica": {"id": ica_id},
    "enrollment_method": "rest_api",
    "authentication_method": "third_party_app",
    "seat_id_mapping": "common_name",
    "renewal_window_days": 30,
    "cert_delivery_format": "x509",
    "api_token_binding_enabled": True,
    "api_token_ids": [api_token_id],
    "allowed_fqdn_regex": [
        {
            "pattern": "^([a-z0-9-]+\\.)*payments\\.example\\.com$",
            "message": "Names must be within payments.example.com.",
        },
    ],
    "tags": ["private-tls", "payments-platform", "non-production"],
    "fields": [
        {
            "key": "validity.duration_unit",
            "type": "string",
            "input": "dropdown",
            "optional": False,
            "multiple": False,
            "sources": [
                {"source": "fixed_value", "value": "days"},
            ],
        },
        {
            "key": "validity.duration_value",
            "type": "number",
            "input": "number",
            "optional": False,
            "multiple": False,
            "min": 90,
            "max": 90,
            "sources": [
                {"source": "fixed_value", "value": 90},
            ],
        },
        {
            "key": "signature_algorithm",
            "type": "string",
            "input": "dropdown",
            "optional": False,
            "multiple": False,
            "sources": [
                {"source": "fixed_value", "value": "sha256WithRSA"},
            ],
        },
        {
            "key": "key_size",
            "type": "string",
            "input": "dropdown",
            "optional": False,
            "multiple": True,
            "sources": [
                {"source": "fixed_value", "value": "RSA 3072"},
            ],
        },
        {
            "key": "extensions.key_usage.critical",
            "type": "boolean",
            "input": "checkbox",
            "optional": False,
            "multiple": False,
            "sources": [
                {"source": "fixed_value", "value": True},
            ],
        },
        {
            "key": "extensions.key_usage.additional_values",
            "type": "string",
            "input": "multiselect",
            "optional": False,
            "multiple": True,
            "rsa_possible_values": [
                "digital_signature",
                "non_repudiation",
                "key_encipherment",
                "data_encipherment",
            ],
            "sources": [
                {"source": "fixed_value", "value": "digital_signature"},
                {"source": "fixed_value", "value": "key_encipherment"},
            ],
        },
        {
            "key": "csr",
            "type": "string",
            "input": "textarea",
            "optional": False,
            "multiple": False,
            "sources": [
                {"source": "rest_request"},
            ],
        },
        {
            "key": "subject.common_name",
            "type": "string",
            "input": "text",
            "optional": True,
            "multiple": False,
            "sources": [
                {"source": "rest_request"},
            ],
        },
        {
            "key": "extensions.extended_key_usage.critical",
            "type": "boolean",
            "input": "checkbox",
            "optional": False,
            "multiple": False,
            "sources": [
                {"source": "fixed_value", "value": False},
            ],
        },
        {
            "key": "extensions.extended_key_usage.additional_values",
            "type": "string",
            "input": "multiselect",
            "optional": False,
            "multiple": True,
            "sources": [
                {"source": "fixed_value", "value": "server_authentication"},
            ],
        },
        {
            "key": "extensions.san.dns_names",
            "type": "string",
            "input": "text",
            "optional": True,
            "multiple": True,
            "sources": [
                {"source": "rest_request"},
            ],
        },
        {
            "key": "extensions.ski_extension.values",
            "type": "string",
            "input": "text",
            "optional": True,
            "multiple": False,
            "sources": [
                {"source": "fixed_value", "value": "include"},
            ],
        },
        {
            "key": "extensions.aki_extension.values",
            "type": "string",
            "input": "text",
            "optional": True,
            "multiple": False,
            "sources": [
                {"source": "fixed_value", "value": "include"},
            ],
        },
    ],
}
Path("profile-request.json").write_text(json.dumps(profile_request, indent=2))
response = requests.post(
    f"{base_url}/mpki/api/v1/profile",
    headers={"x-api-key": admin_api_token},
    json=profile_request,
    timeout=30,
)
response.raise_for_status()
profile = response.json()
Path("profile.json").write_text(response.text)

This request isn’t safe to repeat. If the result is uncertain, list profiles with GET /mpki/api/v2/profile, page with offset and limit, and match items on business_unit_id and the exact name before you send it again.

A successful request returns 201 Created with the profile. The sample shows the fields the next command prints:

{
  "id": "<profile-id>",
  "name": "Private TLS - payments-platform - non-production - REST API",
  "account_id": "<account-id>",
  "business_unit_id": "<business-unit-id>",
  "ica": {
    "id": "<issuing-ca-id>"
  },
  "enrollment_method": "rest_api",
  "authentication_method": "third_party_app",
  "renewal_window_days": 30,
  "cert_delivery_format": "x509",
  "api_token_binding_enabled": true,
  "api_token_ids": [
    "<api-token-id>"
  ],
  "tags": [
    "private-tls",
    "payments-platform",
    "non-production"
  ]
}

If the request returns 404 with entity_not_found “Failed to find the specified CA”, check ica.id first. It takes the 32-character DigiCert Private CA id.

Save the profile id as profile_id:

PROFILE_ID="$(jq -er '.id' profile.json)"
export PROFILE_ID
jq '{business_unit_id, "ica.id": .ica.id, enrollment_method, authentication_method, renewal_window_days, cert_delivery_format, api_token_binding_enabled, api_token_ids, tags}' profile.json
profile_id = profile["id"]
print(json.dumps({
    "business_unit_id": profile["business_unit_id"],
    "ica.id": profile["ica"]["id"],
    "enrollment_method": profile["enrollment_method"],
    "authentication_method": profile["authentication_method"],
    "renewal_window_days": profile["renewal_window_days"],
    "cert_delivery_format": profile["cert_delivery_format"],
    "api_token_binding_enabled": profile["api_token_binding_enabled"],
    "api_token_ids": profile["api_token_ids"],
    "tags": profile["tags"],
}, indent=2))

Confirm that each value matches the table above.

Keep profile-request.json with your profile catalog. It’s the only complete copy of the profile’s definition:

  • Profile reads don’t report the FQDN allow-list pattern or the issuing CA.
  • PUT /mpki/api/v1/profile/{profile_id} replaces the profile’s settings. A request without allowed_fqdn_regex clears the FQDN allow-list.

To update the profile, apply your changes to this file and send the whole file.

Step 4.2: Verify the profile’s guardrails

Retrieve the stored profile, and confirm its controls before the delegated team uses it. Keep the response in your profile catalog for profile reviews.

Use the v2 operation. The v1 operation is deprecated, and its api_token_id field reports only one of the bound tokens.

Retrieve the profile:

curl --fail-with-body --silent --show-error \
  -X GET "https://demo.one.digicert.com/mpki/api/v2/profile/${PROFILE_ID}" \
  -H "x-api-key: ${ADMIN_API_TOKEN}" | jq '.'
response = requests.get(
    f"{base_url}/mpki/api/v2/profile/{profile_id}",
    headers={"x-api-key": admin_api_token},
    timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2))

A successful request returns 200 OK with the stored profile. The sample shows the fields this step checks:

{
  "status": "Active",
  "signature_algorithm": "SHA256_WITH_RSA",
  "renewal_period_days": 30,
  "business_unit_id": "<business-unit-id>",
  "enrollment_method": "rest_api",
  "authentication_method": "third_party_app",
  "renewal_window_days": 0,
  "private_key_attributes": {
    "key_size": "3072"
  },
  "allowed_key_sizes": [
    "3072"
  ],
  "api_token_binding_enabled": true,
  "api_token_ids": [
    "<api-token-id>"
  ],
  "template": {
    "id": "495737f6-f819-4cc8-8c83-94fbd62af489",
    "name": "Generic Private Server Certificate",
    "trust_type": "private"
  }
}

Check each field:

FieldExpected value
statusActive
business_unit_idbusiness_unit_id
enrollment_methodrest_api
authentication_methodthird_party_app
api_token_binding_enabledtrue
api_token_idsOnly api_token_id
signature_algorithmThe algorithm you set, in the stored format, such as SHA256_WITH_RSA for sha256WithRSA
private_key_attributes.key_size and allowed_key_sizesThe key size you set, as a string, such as "3072"
renewal_period_days30
template.id495737f6-f819-4cc8-8c83-94fbd62af489
template.nameGeneric Private Server Certificate
template.trust_typeprivate

The stored profile reports the renewal window in renewal_period_days. Its renewal_window_days reads 0, although the create response returns the value you sent.

The stored profile doesn’t report the issuing CA or the FQDN allow-list pattern. You confirm the issuing CA on the first certificate in Verify the inventory record, and the pattern in Validate the guardrails.

Step 4.3: Confirm that no other profile accepts the token

The delegated service user isn’t confined to a business unit, so the profile binding is what keeps its token inside the team’s boundary. Token binding limits a profile to the tokens it lists, but it doesn’t stop a token from using a profile that doesn’t bind tokens. A REST API profile with token binding off accepts any token whose role can issue, in any business unit, including the delegated team’s.

Confirm two things:

  • Only the team’s profile binds the token.
  • Every other REST API profile in the account binds its own tokens.

List the profiles that bind api_token_id:

curl --fail-with-body --silent --show-error \
  -X GET "https://demo.one.digicert.com/mpki/api/v2/profile?api_token_id=${API_TOKEN_ID}" \
  -H "x-api-key: ${ADMIN_API_TOKEN}" | jq '[.[] | {id, name, business_unit_id}]'
response = requests.get(
    f"{base_url}/mpki/api/v2/profile",
    headers={"x-api-key": admin_api_token},
    params={"api_token_id": api_token_id},
    timeout=30,
)
response.raise_for_status()
print(json.dumps([
    {"id": item["id"], "name": item["name"], "business_unit_id": item["business_unit_id"]}
    for item in response.json()
], indent=2))

A successful request returns 200 OK with an array of profiles, not an object:

[
  {
    "id": "<profile-id>",
    "name": "Private TLS - payments-platform - non-production - REST API",
    "business_unit_id": "<business-unit-id>"
  }
]

Confirm that the array contains one profile, and that its id is profile_id.

Then list every profile in the account, and select the active REST API profiles with third_party_app authentication that don’t bind API tokens. A page holds at most limit profiles, so request pages until one returns fewer than limit. The request saves the full list to profiles.json:

rm -f profiles-[0-9]*.json
OFFSET=0
while :; do
  curl --fail-with-body --silent --show-error \
    -X GET "https://demo.one.digicert.com/mpki/api/v2/profile?limit=100&offset=${OFFSET}" \
    -H "x-api-key: ${ADMIN_API_TOKEN}" \
    -o "profiles-${OFFSET}.json"
  [ "$(jq 'length' "profiles-${OFFSET}.json")" -lt 100 ] && break
  OFFSET=$((OFFSET + 100))
done
jq -s 'add' profiles-[0-9]*.json > profiles.json
rm profiles-[0-9]*.json
jq '[.[] | select(.enrollment_method == "rest_api" and .authentication_method == "third_party_app" and .status == "Active" and .api_token_binding_enabled != true) | {id, name, business_unit_name}]' profiles.json
profiles = []
offset = 0
while True:
    response = requests.get(
        f"{base_url}/mpki/api/v2/profile",
        headers={"x-api-key": admin_api_token},
        params={"limit": 100, "offset": offset},
        timeout=30,
    )
    response.raise_for_status()
    page = response.json()
    profiles.extend(page)
    if len(page) < 100:
        break
    offset += 100
Path("profiles.json").write_text(json.dumps(profiles, indent=2))
unbound = [
    {"id": item["id"], "name": item["name"], "business_unit_name": item.get("business_unit_name")}
    for item in profiles
    if item.get("enrollment_method") == "rest_api"
    and item.get("authentication_method") == "third_party_app"
    and item.get("status") == "Active"
    and item.get("api_token_binding_enabled") is not True
]
print(json.dumps(unbound, indent=2))

When every active REST API profile binds its tokens, the result is an empty array:

[]
Each profile in the result accepts the delegated team’s token. Before you onboard the team, bind the tokens of the identities that use each profile, or suspend the profile, as described in Another profile accepts the delegated team’s token.

Repeat this check whenever someone creates or changes a profile. The scheduled checks in Monitoring include it.

Phase 4 checkpoint

  • profile_id identifies an Active profile in business_unit_id with rest_api enrollment and third_party_app authentication.
  • The profile’s api_token_ids contains only api_token_id.
  • The stored profile’s signature algorithm and key size match the values you set in fields.
  • The local test accepts only names inside the team’s namespace.
  • profile-request.json holds the profile’s complete definition and is kept with your profile catalog.
  • profile_id is the only profile that binds api_token_id, and every active REST API profile with third_party_app authentication binds its API tokens.

Next, issue and evidence a governed certificate.