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:

ValueDelivered howUsed for
service_api_tokenThe delegated team’s secret managerThe x-api-key header on issuance requests
profile_idPipeline configurationprofile.id
business_owner_id, technical_owner_idPipeline configurationcert_owner_ids
The approved namespacePipeline configurationChoosing server names that the FQDN allow-list accepts

These stay with the central PKI team:

  • The setup credential.
  • api_token_id and profile-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:

FieldValue
x-api-key headerservice_api_token
profile.idprofile_id
seat.seat_idThe server name
attributes.subject.common_nameThe server name
attributes.extensions.san.dns_namesThe server name, as the only item. The profile doesn’t use SANs from the CSR.
cert_owner_idsbusiness_owner_id and technical_owner_id
custom_attributesLeave 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_id instead 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:

ResponseMeaning
400 with profile_api_token_errorThe profile doesn’t bind the token in the request.
400 with internal_service_error and the profile’s allow-list messageThe 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:

PhaseTrackCheckpointSaved values
Define the governance boundaryGovernance foundationActive business unit with server seats, the metadata attributes, and both owner recordsaccount_id, business_unit_id, environment_attribute_id, criticality_attribute_id, app_service_attribute_id, business_owner_id, technical_owner_id
Approve the private CA sourceCA approvalIssuing CA assigned to the account, approval evidence recorded, path to the root verifiedica_id, ica_serial_number, root_ca_id, root-ca.pem, issuing-ca.pem
Create the delegated issuance identityService identityService user with only the issuance role in one account and an expiration date, token in the delegated team’s secret managerservice_user_id, api_token_id, service_api_token (secret manager only)
Publish the governed issuance profileProfile and issuanceActive profile that binds only the delegated team’s token, allow-list pattern tested locally, no other profile that accepts the tokenprofile_id, profile-request.json
Issue and evidence a governed certificateProfile and issuanceCertificate validated, inventory record and searches checked, issuance attributed to the delegated service user, guardrail tests failed as expectedserial_number, server-cert.pem, certificate_id, issuance_audit_event_id

Resume after a pause

  1. Return to the working directory you used for the earlier phases.
  2. In Implementation status and saved values, find the last phase you completed.
  3. Restore the shell environment for the phases you completed. A new shell or Python session has none of the saved values.
  4. Verify that phase’s checkpoint again. Each phase ends with its checkpoint.
  5. 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:

  1. 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.
  2. 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_ID
def 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_id with a policy CA tier. The line returns the policy CA’s ID. Set root_ca_id to the id of the CA list item whose name matches 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:

PhaseFiles writtenHandling
Define the governance boundaryaccounts.json, account.json, delegated-business-unit.json, environment-attribute.json, criticality-attribute.json, app-service-attribute.json, business-owner.json, technical-owner.jsonNon-secret configuration records.
Approve the private CA sourcecertificate-authorities.json, certificate-authority.json, issuing-ca.json, root-ca.pem, issuing-ca.pemPublic identifiers and certificates. Retain root-ca.pem and its verified fingerprint.
Create the delegated issuance identityroles.json, role.json, delegated-service-user.json, service-api-token.secret, delegated-service-user-ids.jsondelegated-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 profileprofile-request.json, profile.json, profiles.jsonNon-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 certificateserver.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.jsonserver.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 elementProduced inConsumed inFormatNotes
account_idIdentify the account (GET /account/api/v1/account)Every phaseUUIDDigiCert® Account Manager account id. Sent as account.id, account_id, accounts[], or a query parameter, depending on the operation.
business_unit_idCreate the delegated business unit (POST /mpki/api/v1/business-unit)Define the governance boundary, Publish the governed issuance profile, Issue and evidence a governed certificateUUIDResponse id.
environment_attribute_id, criticality_attribute_id, app_service_attribute_idCreate the mandatory metadata attributes (POST /mpki/api/v1/custom-attributes)Issue and evidence a governed certificateIDResponse id. Sent as custom_attributes_request[].id.
business_owner_id, technical_owner_idRegister the certificate owners (POST /mpki/api/v1/certificate-owners)Issue and evidence a governed certificateIDResponse id. Sent in cert_owner_ids[]. Searches use the owner email instead of the ID.
ica_idSelect 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 certificate32-character hexadecimal stringDigiCert® Private CA id. Sent as DigiCert® Trust Lifecycle Manager ica.id, and reported as ica.id on the certificate record.
ica_serial_numberRecord the issuing CA’s approval evidence (GET /certificate-authority/api/v1/ca/{id})Approve the private CA source, and MonitoringHexadecimal stringResponse serial_number. Compared with the downloaded issuing CA certificate’s serial number.
root_ca_idRecord the issuing CA’s approval evidence (GET /certificate-authority/api/v1/ca/{id})Approve the private CA source32-character hexadecimal stringResponse issuer.id. With a policy CA tier, the root’s id from the CA list instead.
root-ca.pem, issuing-ca.pemDownload the CA certificates (GET /certificate-authority/api/v1/ca/{id}/download)Issue and evidence a governed certificatePEMResponse body with format=pem.
service_user_idCreate the delegated service user (POST /account/api/v1/user)Create the delegated issuance identity, Issue and evidence a governed certificateUUIDResponse id. Sent as the audit log’s admin_id filter.
api_token_idCreate the delegated service user (POST /account/api/v1/user)Publish the governed issuance profileUUIDResponse api_token.id. Sent in api_token_ids[], and as the profile list’s api_token_id filter.
service_api_tokenCreate the delegated service user (POST /account/api/v1/user)Issue and evidence a governed certificateSecretResponse api_token.token, returned once. Sent in the x-api-key header.
profile_idCreate the token-bound profile (POST /mpki/api/v1/profile)Publish the governed issuance profile, Issue and evidence a governed certificateUUIDResponse 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.

IdentifierProductFormatUsed for
Account IDAllUUIDEvery product’s account scope
Business unit IDTrust Lifecycle ManagerUUIDProfile scope, searches, and audit filters
CA IDDigiCert Private CA32-character hexadecimal stringDigiCert Private CA paths and the Trust Lifecycle Manager ica.id
CA serial numberDigiCert Private CAHexadecimal stringComparing the downloaded issuing CA certificate with the CA record, and the optional issuer search filter
User IDAccount ManagerUUIDUser lookup and the audit log’s admin_id filter
API token IDAccount ManagerUUIDProfile api_token_ids, and the profile list’s api_token_id filter
API token valueAccount ManagerSecret stringThe x-api-key header
Certificate serial numberTrust Lifecycle ManagerHexadecimal stringCertificate lookup, search, and revocation

Response structures

OperationResponse structure
Trust Lifecycle Manager list business unitsPaginated 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 attributesThe list is in results, with total.
Trust Lifecycle Manager create business unit, custom attribute, owner, or profile201 Created with the new resource, including its id.
Trust Lifecycle Manager certificate search and audit logPaginated 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 CAsPaginated object with the CAs in items. The operation has no paging parameters, so check total against the number of items.
DigiCert Private CA CA hierarchyObject for the root CA, with intermediates in children. Accepts only a root CA ID.
DigiCert Private CA download CA certificateThe certificate file in the requested format.
Account Manager list rolesObject 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 user201 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:

CredentialUsed for
The delegated team’s token, service_api_tokenThe 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 credentialEvery 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:

OperationAccount field
POST /mpki/api/v1/business-unitaccount 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-logaccount_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-seats takes a JSON array of {"id": "<seat type>", "licensed_amount": <n>} items, not an object. licensed_amount sets 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 from profile-request.json, because a request without allowed_fqdn_regex clears the FQDN allow-list.

Endpoint quick reference

The examples use this host:

https://demo.one.digicert.com
MethodFull pathPhase
GET/account/api/v1/account1
GET/mpki/api/v1/business-unit1
POST/mpki/api/v1/business-unit1
GET/mpki/api/v1/business-unit/{bu_id}1
PUT/mpki/api/v1/business-unit/{bu_id}/licensed-seats1
GET/mpki/api/v1/custom-attributes1
POST/mpki/api/v1/custom-attributes1
GET/mpki/api/v1/certificate-owners1
POST/mpki/api/v1/certificate-owners1
GET/certificate-authority/api/v1/ca2
GET/certificate-authority/api/v1/ca/{id}2
POST/certificate-authority/api/v1/ca/{id}/accounts2
GET/certificate-authority/api/v1/ca/{id}/hierarchy2
GET/certificate-authority/api/v1/ca/{id}/download2
GET/account/api/v1/role3
POST/account/api/v1/user3
GET/account/api/v1/user/{user_id}3
POST/mpki/api/v1/profile4
GET/mpki/api/v2/profile/{profile_id}4
GET/mpki/api/v2/profile4
POST/mpki/api/v1/certificate5
GET/mpki/api/v1/certificate/{serial_number}5
PUT/mpki/api/v1/custom-attributes/certificate/{id}5
GET/mpki/api/v1/certificate-search5
PUT/mpki/api/v1/certificate-owners/certificate/{id}5
GET/mpki/api/v1/audit-log5
PUT/mpki/api/v1/certificate/{serial_number}/revokeOperate
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-tokenOperate
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/userOperate
GET/account/api/v1/api-access-tokenOperate

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.