Solution manual

Establish governed private TLS issuance for a delegated team

Give a platform or application team its own API token and one certificate profile that limits issuance to your approved issuing CA and the team's DNS namespace.

Solution summary

Complexity
Intermediate
Estimated time
3–4 hours
API calls
Approximately 26
Phases
5
Audience
Enterprise PKI integrator, DevSecOps engineer, Technical decision maker

Use this manual to let a platform or application team request private TLS certificates from its own pipeline. You build the controls as the central PKI team, and the delegated team requests certificates with its own API token.

Each request goes through one certificate profile. The profile accepts only the delegated team’s token, issues only from your approved issuing CA, and accepts only SAN DNS names in the team’s namespace. After issuance, you apply the mandatory metadata and confirm each certificate’s owners, issuer, and audit event.

DigiCert® Trust Lifecycle Manager holds the business unit, metadata standard, certificate profile, certificate inventory, and audit log. DigiCert® Private CA provides the approved issuing CA and its chain to the private root. DigiCert® Account Manager creates the delegated team’s service user and API token.

The phases follow the build-order rule in the DigiCert® Trust Architecture Playbook, using the controls available through the API. The rule requires these boundaries before you create any profile or service user:

A profile created earlier ends up in whatever business unit and CA already exist, and Trust Lifecycle Manager enforces that unreviewed scope on every request.

By the end, you will have

After you complete this manual, you’ll have one working issuance path for the delegated team:

PhaseWhat you’ll have
Governance boundaryA business unit with server seats, the environment, criticality, and app_service metadata attributes, and named business and technical owners
Approved CA sourceRecorded approval evidence for the private issuing CA
Delegated identityA service user with one least-privilege Trust Lifecycle Manager role
Governed profileA REST API profile that accepts only the delegated team’s token, and proof that no other profile accepts it
Governed issuanceOne certificate with its inventory record, owner and metadata searches, audit event, and guardrail test results
This manual validates the controls in a demo tenant with one certificate. Certificate deployment, renewal automation, discovery, assignment rules for discovered and imported certificates, and exception registers are out of scope. Before production, work through the Production readiness checklist.

What the controls enforce

The profile enforces some controls when the delegated team requests a certificate. The central PKI team checks the rest after issuance.

Enforced at issuance

The profile applies these controls to every request.

ControlRuleWhere you verify it
Token bindingAccepts only the tokens the profile listsConfirm that no other profile accepts the token
Business unitIssues only in the profile’s business unitVerify the inventory record
Issuing CAIssues only from the one CA the profile namesVerify the inventory record
SAN DNS namesRejects names outside the approved namespaceValidate the guardrails

Checked after issuance

The profile doesn’t enforce these controls, so the central PKI team checks them.

ControlWhy the profile doesn’t enforce itWhere you check it
Common nameThe FQDN allow-list checks only SAN DNS names.Monitoring
Certificate ownersThe owner field in the request is optional.Confirm the governance views find the certificate
Mandatory metadataThe profile attaches no custom attributes, so the central PKI team applies them after issuance.Confirm the governance views find the certificate
Token binding protects only the profiles that turn it on. The delegated team’s token can also search the whole inventory and approve manual-approval requests in any business unit. See Delegation boundaries.

When to use this manual

Use this manual when:

  • A central PKI team onboards a platform or application team that requests private TLS server certificates through the REST API, for example from a CI/CD pipeline.
  • The issuing CA is a DigiCert-hosted DigiCert Private CA intermediate dedicated to internal TLS.
  • You need to show auditors that the profile, the identity, and the metadata standard were in place before issuance began.

Choose a different approach when:

  • The team’s platform is ACME-native, such as an ingress controller with cert-manager. An ACME profile fits better than a token-bound REST API profile.
  • The CA is customer-hosted. Trust Lifecycle Manager reaches it through a CA connector and a sensor, which this manual doesn’t configure.

If the same private root also serves device identity and code signing, see Validate device identity and code signing in a private trust stack for those workloads.

Solution architecture

The work moves through three stages, shown in the following diagram:

  1. Prepare. The central PKI team builds the controls, publishes the profile, and hands off the delegated team’s token and configuration.
  2. Issue. The delegated team’s pipeline requests certificates through the governed profile with its own token.
  3. Verify. The central PKI team applies the mandatory metadata and checks each certificate’s inventory record, owners, chain, and audit event.

Token binding is the delegated team’s boundary. Its service user isn’t confined to a business unit, so the profile accepts only its token. A REST API profile without token binding accepts any token whose role can issue certificates, so every REST API profile in the account must bind its own tokens. You check this in Confirm that no other profile accepts the token.

---
config:
  flowchart:
    nodeSpacing: 20
    rankSpacing: 30
    curve: linear
---
flowchart LR
    accTitle: Prepare, issue, and verify governed TLS certificates
    accDescr: Central PKI prepares the governance controls and profile, then hands request credentials and configuration to the delegated team. The team's pipeline requests a certificate through the governed profile. After issuance, central PKI maps metadata and verifies the evidence.

    subgraph PREPARE["Prepare · Central PKI"]
        direction TB
        CONTROLS["Establish boundary, owners,<br/>metadata, CA, and identity"]
        PUBLISH["Publish and check<br/>the governed profile"]
        CONTROLS --> PUBLISH
    end

    subgraph ISSUE["Issue · Delegated team"]
        direction TB
        PIPELINE["Pipeline uses<br/>its own API token"]
        PROFILE["Governed profile<br/>enforces issuance rules"]
        CERT["Issued certificate"]
        PIPELINE -->|"CSR, names, owner IDs"| PROFILE
        PROFILE --> CERT
    end

    subgraph VERIFY["Verify · Central PKI"]
        direction TB
        REVIEW["Map metadata;<br/>verify inventory, owners,<br/>chain, and requester"]
        EVIDENCE["Evidence pack<br/>including guardrail results"]
        REVIEW --> EVIDENCE
    end

    PREPARE -.->|"Handoff"| ISSUE
    ISSUE -->|"Inventory and audit records"| VERIFY

The dashed arrow is the handoff. For what the delegated team receives, see Delegated team handoff. Solid arrows show the work in each stage and the records used for verification.

Implementation roadmap

Define the governance boundary first. Approve the CA source and create the delegated service user in either order, then publish the governed profile and issue the first certificate.

Next, complete both required workstreams. You may work in any order or in parallel.

Implementation complete Every phase is finished.
View operational guidance

The Data flow overview lists the values each phase passes on.

Products and APIs

ProductAPI specificationRole in this solution
Trust Lifecycle ManagerTrust Lifecycle Manager API referenceCreate the business unit, allocate seats, define custom attributes and certificate owners, publish the profile, issue the certificate, and retrieve inventory and audit evidence.
DigiCert Private CADigiCert Private CA API referenceSelect the issuing CA, record its approval evidence, assign it to the account when needed, confirm its position under the root, and download the CA certificates.
Account ManagerAccount Manager API referenceLook up the account ID, find the least-privilege role, and create the delegated service user and its API token.

Data flow overview

ValueFromToPurpose
account_idPhase 1Phases 2 to 5Identify the account in every product.
business_unit_idPhase 1Phases 4 and 5Scope the profile, and filter evidence to the business unit.
environment_attribute_id, criticality_attribute_id, app_service_attribute_idPhase 1Phase 5Map the mandatory metadata after issuance.
business_owner_id, technical_owner_idPhase 1Phase 5Name the owners at issuance.
ica_idPhase 2Phases 4 and 5Bind the profile to the approved issuing CA, and confirm the issuer.
root-ca.pem, issuing-ca.pemPhase 2Phase 5Validate the certificate path.
api_token_idPhase 3Phase 4Restrict the profile to the delegated team’s token, and confirm that no other profile binds it.
service_api_tokenPhase 3Phase 5Authenticate the issuance request.
service_user_idPhase 3Phase 5Attribute the audit event to the delegated service user.
profile_idPhase 4Phase 5Issue through the governed profile.

Before you begin

Make sure you have:

A DigiCert® ONE account with Trust Lifecycle Manager, DigiCert Private CA, and Account Manager entitlements.
A setup credential for the central PKI team, with the capabilities listed after these prerequisites. Use a dedicated service user that the PKI team owns, so audit logs attribute each setup action to a named non-human identity.
A custom Trust Lifecycle Manager role for the delegated team that grants only Certificates, Create, and Enrollment (Manage). Create it in the Account Manager UI before you start, because the API can’t create custom roles. See Create a custom role. In a demo tenant, you can skip this and use the predefined User and certificate manager role. Don’t use it in production. It also grants seat and report management, and it can revoke, renew, and suspend certificates.
An approved two-tier private hierarchy in DigiCert Private CA, where the root directly signs an active issuing CA dedicated to internal TLS. Configure CRL and OCSP on the issuing CA before production use. This workflow doesn’t create or change the hierarchy. In DigiCert-hosted environments, your DigiCert representative creates the CAs.
Unallocated seats for server certificates in the account. If other business units hold all of them, such as the Default Business Unit that some accounts have, deallocate some before you start.
An approved DNS namespace for the delegated team, such as payments.example.com, confirmed by its namespace owner. The profile accepts only names inside it.
The names and email addresses of the business owner, who is accountable for the service, and the technical owner, who is responsible for its certificates.
curl, jq, OpenSSL, and Python 3 with the requests package for the examples.
A demo tenant for validation before production use.

The setup credential needs the following roles and permissions. To check Trust Lifecycle Manager and DigiCert Private CA access, call GET /account/api/v1/user/{user_id}. It lists roles in applications[].roles and effective permissions in applications[].permissions. To check Account Manager access, confirm that GET /account/api/v1/account and GET /account/api/v1/role succeed.

ProductRoles or permissionsNeeded for
Trust Lifecycle ManagerManager and Custom attribute manager rolesBase access for this workflow
Trust Lifecycle ManagerView Business Unit, Manage Business Unit, and Manage licensed seatsCreating the business unit and allocating seats
Trust Lifecycle ManagerVIEW_EM_CUSTOM_ATTRIBUTES and MANAGE_EM_CUSTOM_ATTRIBUTESViewing custom attributes, and mapping them to certificates
Trust Lifecycle ManagerVIEW_EM_CERTIFICATE_OWNERS and MANAGE_EM_CERTIFICATE_OWNERSFinding and registering certificate owners, and adding them to certificates
DigiCert Private CAVIEW_CM_CA and VIEW_CM_HIERARCHY, included in the Read only roleReading the issuing CA and its hierarchy
DigiCert Private CAMANAGE_CM_CA_ACCOUNTS, included in the PKI manager roleAssigning the issuing CA to the account, if it isn’t assigned yet
Account ManagerUser manager role, or the View accounts and Manage users permissionsLooking up the account, listing roles, and creating the service user and its API token

Role names differ between tenants, so look them up in yours. In Account Manager role responses, Trust Lifecycle Manager roles are under the enterprise_manager key, and the predefined role names start with EM_EPKI_.

Never share the setup credential with the delegated team or store it in a pipeline. It can create business units, profiles, and service users. The delegated team gets only service_api_token, which you create in Create the delegated issuance identity.

Key concepts

TermDefinition
Central PKI teamThe team that owns the PKI and runs every setup step.
Delegated teamThe platform or application team that requests certificates from its pipeline with its own API token.
Setup credentialThe central PKI team’s API token. It runs setup and maps metadata after issuance, and it never leaves the central PKI team.
Business unitA Trust Lifecycle Manager boundary for issuance, seats, and reports. Each profile belongs to one business unit.
SeatA licensed unit that issuance consumes. Seats are allocated to business units by type. Accounts on the current licensing model use TLM_SEAT, and accounts on the legacy model use SERVER_SEAT for private server certificates.
Certificate profileThe issuance rules a request must meet, built from a base template such as Generic Private Server Certificate. It fixes the business unit, issuing CA, certificate fields, accepted tokens, and allowed names.
Token bindingA profile setting that limits issuance to the API tokens the profile lists. Without it, a REST API profile accepts any token whose role can issue certificates.
FQDN allow-listA profile rule that rejects SAN DNS names outside the approved namespace. It doesn’t check the common name.
Custom attributeAn account-wide metadata field, such as environment, for search, reporting, and exception tracking.
Certificate ownerA named person who is accountable for certificates and receives their notifications.
Delegated service userThe Account Manager service user that one delegated team uses to request certificates. It holds one issuance role, and its token is the only one its profile accepts.
CA source registryYour governance record of each approved CA, with its purpose, owner, and chain.
Issuing CA IDThe DigiCert Private CA id of the issuing CA, a 32-character hexadecimal string rather than a UUID. Profiles reference it as ica.id.
API token ID and valueapi_token.id identifies the token, and profiles bind to it. api_token.token is the secret that requests send. Audit log searches use the service user’s id instead.
Evidence packThe records that show a certificate was issued within the approved controls. See Assemble the evidence pack.

Planning time

WorkFocused execution time
Define the governance boundary30 minutes
Approve the private CA source20 minutes
Create the delegated issuance identity15 minutes
Publish the governed issuance profile30 minutes
Issue and evidence a governed certificate40 minutes
Full workflow135 minutes

Plan for three to four hours in a prepared demo tenant. The estimate includes review, approvals between the central PKI team and the delegated team, and validation. It excludes the lead time to approve the namespace, create the custom role, and establish the private hierarchy.

Prepare your environment

Create a dedicated working directory for the validation run. Every example reads and writes files by relative path, so run every phase from this directory:

WORK_DIR="governed-tls-validation-$(date +%Y%m%d-%H%M%S)"
mkdir -m 700 "${WORK_DIR}"
cd "${WORK_DIR}"
umask 077

The working directory holds the delegated team’s API token, in service-api-token.secret and delegated-service-user.json, and the server’s private key, in server.key. Anyone with these files can issue certificates as the delegated team or impersonate the server.

  • Move the token to the delegated team’s secret manager, then delete both token files.
  • Delete the working directory when you finish.

Keep these files only for a demo-tenant validation run. In production, the token goes directly to the secret manager, and the private key never leaves the service host.

Load the central PKI team’s setup credential without echoing it. The cURL tab exports it for the shell session. The Python tab starts the session that every later Python example runs in:

printf 'Setup API token: ' >&2; read -rs ADMIN_API_TOKEN; echo
export ADMIN_API_TOKEN
import json
from getpass import getpass
from pathlib import Path

import requests

base_url = "https://demo.one.digicert.com"
admin_api_token = getpass("Setup API token: ")

How to read the examples

TopicConvention
cURLRun the blocks in order, from the same shell, in the working directory. Requests use --fail-with-body --silent --show-error, so they stop on an HTTP error and print the error body. Responses that later steps need are saved with -o <name>.json.
PythonRun the examples in order, in one session. Later examples reuse earlier variables.
Value namesValues passed between steps use snake_case, such as business_unit_id. cURL exports the UPPER_SNAKE equivalent, such as BUSINESS_UNIT_ID.
CredentialsYou act as both teams in this run. From Create the delegated issuance identity on, your session holds the setup credential and the delegated team’s token. In production, only the delegated team’s pipeline holds its token. Keep the setup credential in an approved secret manager, never in a general-purpose environment file.
HostThe examples use the US demo host demo.one.digicert.com. Replace it with the host for your tenant and region.
PausingBefore you continue after a break, follow Resume after a pause.

Start the implementation

Define the governance boundary

If you’re on the delegated team, start with Delegated team handoff.