Governed TLS issuance reference
Look up saved values, the delegated team handoff, cross-product identifiers, authentication, request-format differences, and every endpoint the governed TLS issuance workflow uses.
Look up details for either team:
- Delegated team: what it receives and how its issuance requests must look.
- Central PKI team: the values and files each phase saves, how identifiers cross between products, and every endpoint the workflow calls.
Delegated team handoff
The central PKI team creates every resource in this workflow except the certificate. Hand the delegated team these values, and nothing else, before it can issue the certificate as the delegated identity:
| Value | Delivered how | Used for |
|---|---|---|
service_api_token | The delegated team’s secret manager | The x-api-key header on issuance requests |
profile_id | Pipeline configuration | profile.id |
business_owner_id, technical_owner_id | Pipeline configuration | cert_owner_ids |
| The approved namespace | Pipeline configuration | Choosing server names that the FQDN allow-list accepts |
These stay with the central PKI team:
- The setup credential.
api_token_idandprofile-request.json, for token rotation and profile updates.- The custom attribute IDs, because the central PKI team maps the metadata after issuance.
- The CA certificates, for path validation.
Request contract for the delegated team
Each issuance request from the delegated team’s pipeline sets these fields, as shown in Issue the certificate as the delegated identity:
| Field | Value |
|---|---|
x-api-key header | service_api_token |
profile.id | profile_id |
seat.seat_id | The server name |
attributes.subject.common_name | The server name |
attributes.extensions.san.dns_names | The server name, as the only item. The profile doesn’t use SANs from the CSR. |
cert_owner_ids | business_owner_id and technical_owner_id |
custom_attributes | Leave it out. The profile rejects it, and the central PKI team maps the metadata after issuance. |
The pipeline also follows these rules:
- Keep the common name inside the namespace. The FQDN allow-list checks only the SAN DNS name, and the central PKI team’s monitoring flags common names outside the namespace.
- Name both owners. A request without them still issues, and the central PKI team must add the owners afterward.
- Generate the private key on the service host. Only the CSR leaves it.
- If the response contains
request_idinstead of a certificate, retrieve the certificate as described in Asynchronous operations. - Don’t blindly retry a request that timed out. Search for the certificate first, as described in Retry and rate-limit behavior.
These rejections come from the profile:
| Response | Meaning |
|---|---|
400 with profile_api_token_error | The profile doesn’t bind the token in the request. |
400 with internal_service_error and the profile’s allow-list message | The SAN DNS name is outside the approved namespace. |
400 with internal_service_error and “the attribute value at position 0 should have been supplied, but is missing” | The request has no SAN DNS name. |
400 with internal_service_error and “Maximum expected values count 1, actual values count 2” | The request lists more than one SAN DNS name. |
400 with internal_service_error and “Not expected custom attribute id=<attribute-id> from profile” | The request sends custom_attributes. |
For permission and seat errors, see The delegated team can’t issue from the profile.
Implementation status and saved values
Each phase ends with a checkpoint. This table summarizes each one and lists the values the phase saves:
| Phase | Track | Checkpoint | Saved values |
|---|---|---|---|
| Define the governance boundary | Governance foundation | Active business unit with server seats, the metadata attributes, and both owner records | account_id, business_unit_id, environment_attribute_id, criticality_attribute_id, app_service_attribute_id, business_owner_id, technical_owner_id |
| Approve the private CA source | CA approval | Issuing CA assigned to the account, approval evidence recorded, path to the root verified | ica_id, ica_serial_number, root_ca_id, root-ca.pem, issuing-ca.pem |
| Create the delegated issuance identity | Service identity | Service user with only the issuance role in one account and an expiration date, token in the delegated team’s secret manager | service_user_id, api_token_id, service_api_token (secret manager only) |
| Publish the governed issuance profile | Profile and issuance | Active profile that binds only the delegated team’s token, allow-list pattern tested locally, no other profile that accepts the token | profile_id, profile-request.json |
| Issue and evidence a governed certificate | Profile and issuance | Certificate validated, inventory record and searches checked, issuance attributed to the delegated service user, guardrail tests failed as expected | serial_number, server-cert.pem, certificate_id, issuance_audit_event_id |
Resume after a pause
- Return to the working directory you used for the earlier phases.
- In Implementation status and saved values, find the last phase you completed.
- Restore the shell environment for the phases you completed. A new shell or Python session has none of the saved values.
- Verify that phase’s checkpoint again. Each phase ends with its checkpoint.
- Before you repeat any create request, search for the resource, as described in Recover from uncertain results. A timed-out create request might have succeeded even when its response was lost.
Restore the shell environment
Each step saved its response to the working directory, so you can restore the values without repeating a request:
- Run your language’s tab in Prepare your environment. It loads the setup credential, and in Python it also imports the modules and sets
base_url. - Run the lines for the phases you completed. In this validation run, you act as both teams, so the first line prompts for the delegated team’s token. Paste the token from the team’s secret manager, or leave the line out if you haven’t created the delegated issuance identity yet.
printf "Delegated team's API token: " >&2; read -rs SERVICE_API_TOKEN; echo
# Define the governance boundary
ACCOUNT_ID="$(jq -er '.id' account.json)"
BUSINESS_UNIT_ID="$(jq -er '.id' delegated-business-unit.json)"
ENVIRONMENT_ATTRIBUTE_ID="$(jq -er '.id' environment-attribute.json)"
CRITICALITY_ATTRIBUTE_ID="$(jq -er '.id' criticality-attribute.json)"
APP_SERVICE_ATTRIBUTE_ID="$(jq -er '.id' app-service-attribute.json)"
BUSINESS_OWNER_ID="$(jq -er '.id' business-owner.json)"
TECHNICAL_OWNER_ID="$(jq -er '.id' technical-owner.json)"
# Approve the private CA source
ICA_ID="$(jq -er '.id' issuing-ca.json)"
ICA_SERIAL_NUMBER="$(jq -er '.serial_number' issuing-ca.json)"
ROOT_CA_ID="$(jq -er '.issuer.id' issuing-ca.json)"
# Create the delegated issuance identity
SERVICE_USER_ID="$(jq -er '.id' delegated-service-user-ids.json)"
API_TOKEN_ID="$(jq -er '.api_token.id' delegated-service-user-ids.json)"
# Publish the governed issuance profile
PROFILE_ID="$(jq -er '.id' profile.json)"
# Issue and evidence a governed certificate
SERIAL_NUMBER="$(jq -er '.serial_number' certificate.json)"
CERTIFICATE_ID="$(jq -er '.id' certificate-record.json)"
ISSUANCE_AUDIT_EVENT_ID="$(jq -er '.id' audit-event.json)"
export SERVICE_API_TOKEN ACCOUNT_ID BUSINESS_UNIT_ID \
ENVIRONMENT_ATTRIBUTE_ID CRITICALITY_ATTRIBUTE_ID APP_SERVICE_ATTRIBUTE_ID \
BUSINESS_OWNER_ID TECHNICAL_OWNER_ID ICA_ID ICA_SERIAL_NUMBER ROOT_CA_ID \
SERVICE_USER_ID API_TOKEN_ID PROFILE_ID SERIAL_NUMBER CERTIFICATE_ID \
ISSUANCE_AUDIT_EVENT_IDdef saved(name):
return json.loads(Path(name).read_text())
service_api_token = getpass("Delegated team's API token: ")
# Define the governance boundary
account_id = saved("account.json")["id"]
business_unit_id = saved("delegated-business-unit.json")["id"]
environment_attribute_id = saved("environment-attribute.json")["id"]
criticality_attribute_id = saved("criticality-attribute.json")["id"]
app_service_attribute_id = saved("app-service-attribute.json")["id"]
business_owner_id = saved("business-owner.json")["id"]
technical_owner_id = saved("technical-owner.json")["id"]
# Approve the private CA source
ica_id = saved("issuing-ca.json")["id"]
ica_serial_number = saved("issuing-ca.json")["serial_number"]
root_ca_id = saved("issuing-ca.json")["issuer"]["id"]
# Create the delegated issuance identity
service_user_id = saved("delegated-service-user-ids.json")["id"]
api_token_id = saved("delegated-service-user-ids.json")["api_token"]["id"]
# Publish the governed issuance profile
profile_id = saved("profile.json")["id"]
# Issue and evidence a governed certificate
serial_number = saved("certificate.json")["serial_number"]
certificate_id = saved("certificate-record.json")["id"]
issuance_audit_event_id = saved("audit-event.json")["id"]Set these values yourself instead of reading them from a file:
- A reused business unit, attribute, or owner. The file its line reads doesn’t exist. Skip that line, and set the value to the existing resource’s
id. root_ca_idwith a policy CA tier. The line returns the policy CA’s ID. Setroot_ca_idto theidof the CA list item whosenamematches the root name, as described in Approve the private CA source.- Values you chose. The business unit name and the owners’ email addresses aren’t in a response file. Set them again if a later step needs them.
Files each phase writes
Every example uses relative paths, so run all five phases in one working directory. The examples write these files:
| Phase | Files written | Handling |
|---|---|---|
| Define the governance boundary | accounts.json, account.json, delegated-business-unit.json, environment-attribute.json, criticality-attribute.json, app-service-attribute.json, business-owner.json, technical-owner.json | Non-secret configuration records. |
| Approve the private CA source | certificate-authorities.json, certificate-authority.json, issuing-ca.json, root-ca.pem, issuing-ca.pem | Public identifiers and certificates. Retain root-ca.pem and its verified fingerprint. |
| Create the delegated issuance identity | roles.json, role.json, delegated-service-user.json, service-api-token.secret, delegated-service-user-ids.json | delegated-service-user.json and service-api-token.secret hold the delegated team’s token. Move the token to the team’s secret manager and delete both files. delegated-service-user-ids.json holds only the user id and api_token.id, which the restore reads. |
| Publish the governed issuance profile | profile-request.json, profile.json, profiles.json | Non-secret profile records for the profile catalog. profile-request.json is the complete profile definition that every later profile update sends. |
| Issue and evidence a governed certificate | server.key, server.csr, certificate.json, certificate-record.json, server-cert.pem, audit-events.json, audit-event.json, guardrail-request.json, guardrail-unbound-token.json, guardrail-namespace-request.json, guardrail-namespace.json, guardrail-other-profile-request.json, guardrail-other-profile.json | server.key is the private key. In production it stays on the service host. Retain server-cert.pem, the audit event, and the guardrail files as evidence, and delete server.key with the working directory when the run is done. |
Cross-product data flow
| Data element | Produced in | Consumed in | Format | Notes |
|---|---|---|---|---|
account_id | Identify the account (GET /account/api/v1/account) | Every phase | UUID | DigiCert® Account Manager account id. Sent as account.id, account_id, accounts[], or a query parameter, depending on the operation. |
business_unit_id | Create the delegated business unit (POST /mpki/api/v1/business-unit) | Define the governance boundary, Publish the governed issuance profile, Issue and evidence a governed certificate | UUID | Response id. |
environment_attribute_id, criticality_attribute_id, app_service_attribute_id | Create the mandatory metadata attributes (POST /mpki/api/v1/custom-attributes) | Issue and evidence a governed certificate | ID | Response id. Sent as custom_attributes_request[].id. |
business_owner_id, technical_owner_id | Register the certificate owners (POST /mpki/api/v1/certificate-owners) | Issue and evidence a governed certificate | ID | Response id. Sent in cert_owner_ids[]. Searches use the owner email instead of the ID. |
ica_id | Select the internal TLS issuing CA (GET /certificate-authority/api/v1/ca) | Approve the private CA source, Publish the governed issuance profile, Issue and evidence a governed certificate | 32-character hexadecimal string | DigiCert® Private CA id. Sent as DigiCert® Trust Lifecycle Manager ica.id, and reported as ica.id on the certificate record. |
ica_serial_number | Record the issuing CA’s approval evidence (GET /certificate-authority/api/v1/ca/{id}) | Approve the private CA source, and Monitoring | Hexadecimal string | Response serial_number. Compared with the downloaded issuing CA certificate’s serial number. |
root_ca_id | Record the issuing CA’s approval evidence (GET /certificate-authority/api/v1/ca/{id}) | Approve the private CA source | 32-character hexadecimal string | Response issuer.id. With a policy CA tier, the root’s id from the CA list instead. |
root-ca.pem, issuing-ca.pem | Download the CA certificates (GET /certificate-authority/api/v1/ca/{id}/download) | Issue and evidence a governed certificate | PEM | Response body with format=pem. |
service_user_id | Create the delegated service user (POST /account/api/v1/user) | Create the delegated issuance identity, Issue and evidence a governed certificate | UUID | Response id. Sent as the audit log’s admin_id filter. |
api_token_id | Create the delegated service user (POST /account/api/v1/user) | Publish the governed issuance profile | UUID | Response api_token.id. Sent in api_token_ids[], and as the profile list’s api_token_id filter. |
service_api_token | Create the delegated service user (POST /account/api/v1/user) | Issue and evidence a governed certificate | Secret | Response api_token.token, returned once. Sent in the x-api-key header. |
profile_id | Create the token-bound profile (POST /mpki/api/v1/profile) | Publish the governed issuance profile, Issue and evidence a governed certificate | UUID | Response id. Sent as profile.id. |
Identifier formats
Identifiers from the three products look alike, and length alone doesn’t distinguish a CA ID from a serial number. Take each value from the field this workflow names, and use this table when a request rejects an ID.
| Identifier | Product | Format | Used for |
|---|---|---|---|
| Account ID | All | UUID | Every product’s account scope |
| Business unit ID | Trust Lifecycle Manager | UUID | Profile scope, searches, and audit filters |
| CA ID | DigiCert Private CA | 32-character hexadecimal string | DigiCert Private CA paths and the Trust Lifecycle Manager ica.id |
| CA serial number | DigiCert Private CA | Hexadecimal string | Comparing the downloaded issuing CA certificate with the CA record, and the optional issuer search filter |
| User ID | Account Manager | UUID | User lookup and the audit log’s admin_id filter |
| API token ID | Account Manager | UUID | Profile api_token_ids, and the profile list’s api_token_id filter |
| API token value | Account Manager | Secret string | The x-api-key header |
| Certificate serial number | Trust Lifecycle Manager | Hexadecimal string | Certificate lookup, search, and revocation |
Response structures
| Operation | Response structure |
|---|---|
| Trust Lifecycle Manager list business units | Paginated object. Business units are in items, with total, offset, and limit. offset is the index of the first record, and limit defaults to 20. |
| Trust Lifecycle Manager list custom attributes | The list is in results, with total. |
| Trust Lifecycle Manager create business unit, custom attribute, owner, or profile | 201 Created with the new resource, including its id. |
| Trust Lifecycle Manager certificate search and audit log | Paginated objects with the records in items. |
| Trust Lifecycle Manager list profiles (v2) | An array of profiles, not an object. Page with offset and limit, and stop when a page returns fewer items than limit. Each item carries business_unit_id, enrollment_method, authentication_method, status, api_token_binding_enabled, and api_token_ids. |
| DigiCert Private CA list CAs | Paginated object with the CAs in items. The operation has no paging parameters, so check total against the number of items. |
| DigiCert Private CA CA hierarchy | Object for the root CA, with intermediates in children. Accepts only a root CA ID. |
| DigiCert Private CA download CA certificate | The certificate file in the requested format. |
| Account Manager list roles | Object keyed by product code, such as enterprise_manager, each containing a role array. Roles carry name and, for predefined roles, display_name, but no permissions. |
| Account Manager create user | 201 Created with the user id and an api_token object whose token is returned only once. |
Authentication
Each request in this workflow uses one of two credentials:
| Credential | Used for |
|---|---|
The delegated team’s token, service_api_token | The request in Issue the certificate as the delegated identity, and the Out-of-namespace name and Another team’s profile tests in Validate the guardrails |
| The central PKI team’s setup credential | Every other request |
All three products also accept a client authentication certificate in place of an API token in the x-api-key header. Requests that authenticate with a certificate use the clientauth. host prefix and omit x-api-key. See Authentication.
API-specific request formats
Trust Lifecycle Manager operations identify the account in different ways. Send the form each operation documents:
| Operation | Account field |
|---|---|
POST /mpki/api/v1/business-unit | account object with id |
POST /mpki/api/v1/custom-attributes, POST /mpki/api/v1/certificate-owners, POST /mpki/api/v1/profile, and PUT /mpki/api/v1/custom-attributes/certificate/{id} | account_id in the body |
GET /mpki/api/v1/custom-attributes, GET /mpki/api/v1/certificate-search, and GET /mpki/api/v1/audit-log | account_id query parameter |
Some other Trust Lifecycle Manager operations take an account query parameter that must be a JSON object with both id and name. This workflow doesn’t use them, but account.json includes both values.
Two request bodies need a specific shape:
PUT /mpki/api/v1/business-unit/{bu_id}/licensed-seatstakes a JSON array of{"id": "<seat type>", "licensed_amount": <n>}items, not an object.licensed_amountsets the business unit’s total for that seat type, so send the full number of seats.PUT /mpki/api/v1/profile/{profile_id}replaces the profile’s settings. Send the complete definition fromprofile-request.json, because a request withoutallowed_fqdn_regexclears the FQDN allow-list.
Endpoint quick reference
The examples use this host:
https://demo.one.digicert.com
| Method | Full path | Phase |
|---|---|---|
| GET | /account/api/v1/account | 1 |
| GET | /mpki/api/v1/business-unit | 1 |
| POST | /mpki/api/v1/business-unit | 1 |
| GET | /mpki/api/v1/business-unit/{bu_id} | 1 |
| PUT | /mpki/api/v1/business-unit/{bu_id}/licensed-seats | 1 |
| GET | /mpki/api/v1/custom-attributes | 1 |
| POST | /mpki/api/v1/custom-attributes | 1 |
| GET | /mpki/api/v1/certificate-owners | 1 |
| POST | /mpki/api/v1/certificate-owners | 1 |
| GET | /certificate-authority/api/v1/ca | 2 |
| GET | /certificate-authority/api/v1/ca/{id} | 2 |
| POST | /certificate-authority/api/v1/ca/{id}/accounts | 2 |
| GET | /certificate-authority/api/v1/ca/{id}/hierarchy | 2 |
| GET | /certificate-authority/api/v1/ca/{id}/download | 2 |
| GET | /account/api/v1/role | 3 |
| POST | /account/api/v1/user | 3 |
| GET | /account/api/v1/user/{user_id} | 3 |
| POST | /mpki/api/v1/profile | 4 |
| GET | /mpki/api/v2/profile/{profile_id} | 4 |
| GET | /mpki/api/v2/profile | 4 |
| POST | /mpki/api/v1/certificate | 5 |
| GET | /mpki/api/v1/certificate/{serial_number} | 5 |
| PUT | /mpki/api/v1/custom-attributes/certificate/{id} | 5 |
| GET | /mpki/api/v1/certificate-search | 5 |
| PUT | /mpki/api/v1/certificate-owners/certificate/{id} | 5 |
| GET | /mpki/api/v1/audit-log | 5 |
| PUT | /mpki/api/v1/certificate/{serial_number}/revoke | Operate |
| DELETE | /mpki/api/v1/seat/{seat_id} | Operate |
| DELETE | /account/api/v1/user/{user_id} | Operate |
| DELETE | /mpki/api/v1/business-unit/{bu_id} | Operate |
| GET | /account/api/v1/api-access-token/{id} | Operate |
| POST | /account/api/v1/api-access-token | Operate |
| PUT | /mpki/api/v1/profile/{profile_id} | Operate |
| PUT | /account/api/v1/api-access-token/{id} | Operate |
| DELETE | /account/api/v1/api-access-token/{id} | Operate |
| POST | /mpki/api/v1/certificate-pickup/{request_id} | Operate |
| GET | /account/api/v1/user | Operate |
| GET | /account/api/v1/api-access-token | Operate |
Rows marked Operate are endpoints used only in Operate this solution. That page’s monitoring and recovery steps also reuse phase endpoints, such as certificate search and the audit log.