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:
- Business unit scope and mandatory metadata, from Define the governance boundary.
- Role boundaries, from the custom role in Before you begin.
- An approved CA source, from Approve the private CA source.
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:
| Phase | What you’ll have |
|---|---|
| Governance boundary | A business unit with server seats, the environment, criticality, and app_service metadata attributes, and named business and technical owners |
| Approved CA source | Recorded approval evidence for the private issuing CA |
| Delegated identity | A service user with one least-privilege Trust Lifecycle Manager role |
| Governed profile | A REST API profile that accepts only the delegated team’s token, and proof that no other profile accepts it |
| Governed issuance | One certificate with its inventory record, owner and metadata searches, audit event, and guardrail test results |
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.
| Control | Rule | Where you verify it |
|---|---|---|
| Token binding | Accepts only the tokens the profile lists | Confirm that no other profile accepts the token |
| Business unit | Issues only in the profile’s business unit | Verify the inventory record |
| Issuing CA | Issues only from the one CA the profile names | Verify the inventory record |
| SAN DNS names | Rejects names outside the approved namespace | Validate the guardrails |
Checked after issuance
The profile doesn’t enforce these controls, so the central PKI team checks them.
| Control | Why the profile doesn’t enforce it | Where you check it |
|---|---|---|
| Common name | The FQDN allow-list checks only SAN DNS names. | Monitoring |
| Certificate owners | The owner field in the request is optional. | Confirm the governance views find the certificate |
| Mandatory metadata | The profile attaches no custom attributes, so the central PKI team applies them after issuance. | Confirm the governance views find the certificate |
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:
- Prepare. The central PKI team builds the controls, publishes the profile, and hands off the delegated team’s token and configuration.
- Issue. The delegated team’s pipeline requests certificates through the governed profile with its own token.
- 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"| VERIFYThe 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.
CA approval
Service identity
Profile and issuance
- Phase 4 Trust Lifecycle Manager
Publish the governed issuance profile
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.
30 minutes Prerequisites: Approve the private CA source, Create the delegated issuance identity Open phase - Phase 5 Trust Lifecycle Manager
Issue and evidence a governed certificate
A certificate issued with the delegated team's token validates to the approved root, and its inventory record and audit events show the expected profile, business unit, issuer, owners, and metadata.
40 minutes Prerequisite: Publish the governed issuance profile Open phase
The Data flow overview lists the values each phase passes on.
Products and APIs
| Product | API specification | Role in this solution |
|---|---|---|
| Trust Lifecycle Manager | Trust Lifecycle Manager API reference | Create 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 CA | DigiCert Private CA API reference | Select 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 Manager | Account Manager API reference | Look up the account ID, find the least-privilege role, and create the delegated service user and its API token. |
Data flow overview
| Value | From | To | Purpose |
|---|---|---|---|
account_id | Phase 1 | Phases 2 to 5 | Identify the account in every product. |
business_unit_id | Phase 1 | Phases 4 and 5 | Scope the profile, and filter evidence to the business unit. |
environment_attribute_id, criticality_attribute_id, app_service_attribute_id | Phase 1 | Phase 5 | Map the mandatory metadata after issuance. |
business_owner_id, technical_owner_id | Phase 1 | Phase 5 | Name the owners at issuance. |
ica_id | Phase 2 | Phases 4 and 5 | Bind the profile to the approved issuing CA, and confirm the issuer. |
root-ca.pem, issuing-ca.pem | Phase 2 | Phase 5 | Validate the certificate path. |
api_token_id | Phase 3 | Phase 4 | Restrict the profile to the delegated team’s token, and confirm that no other profile binds it. |
service_api_token | Phase 3 | Phase 5 | Authenticate the issuance request. |
service_user_id | Phase 3 | Phase 5 | Attribute the audit event to the delegated service user. |
profile_id | Phase 4 | Phase 5 | Issue through the governed profile. |
Before you begin
Make sure you have:
payments.example.com, confirmed by its namespace owner. The profile accepts only names inside it.curl, jq, OpenSSL, and Python 3 with the requests package for the examples.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.
| Product | Roles or permissions | Needed for |
|---|---|---|
| Trust Lifecycle Manager | Manager and Custom attribute manager roles | Base access for this workflow |
| Trust Lifecycle Manager | View Business Unit, Manage Business Unit, and Manage licensed seats | Creating the business unit and allocating seats |
| Trust Lifecycle Manager | VIEW_EM_CUSTOM_ATTRIBUTES and MANAGE_EM_CUSTOM_ATTRIBUTES | Viewing custom attributes, and mapping them to certificates |
| Trust Lifecycle Manager | VIEW_EM_CERTIFICATE_OWNERS and MANAGE_EM_CERTIFICATE_OWNERS | Finding and registering certificate owners, and adding them to certificates |
| DigiCert Private CA | VIEW_CM_CA and VIEW_CM_HIERARCHY, included in the Read only role | Reading the issuing CA and its hierarchy |
| DigiCert Private CA | MANAGE_CM_CA_ACCOUNTS, included in the PKI manager role | Assigning the issuing CA to the account, if it isn’t assigned yet |
| Account Manager | User manager role, or the View accounts and Manage users permissions | Looking 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_.
service_api_token, which you create in Create the delegated issuance identity.Key concepts
| Term | Definition |
|---|---|
| Central PKI team | The team that owns the PKI and runs every setup step. |
| Delegated team | The platform or application team that requests certificates from its pipeline with its own API token. |
| Setup credential | The central PKI team’s API token. It runs setup and maps metadata after issuance, and it never leaves the central PKI team. |
| Business unit | A Trust Lifecycle Manager boundary for issuance, seats, and reports. Each profile belongs to one business unit. |
| Seat | A 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 profile | The 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 binding | A 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-list | A profile rule that rejects SAN DNS names outside the approved namespace. It doesn’t check the common name. |
| Custom attribute | An account-wide metadata field, such as environment, for search, reporting, and exception tracking. |
| Certificate owner | A named person who is accountable for certificates and receives their notifications. |
| Delegated service user | The 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 registry | Your governance record of each approved CA, with its purpose, owner, and chain. |
| Issuing CA ID | The 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 value | api_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 pack | The records that show a certificate was issued within the approved controls. See Assemble the evidence pack. |
Planning time
| Work | Focused execution time |
|---|---|
| Define the governance boundary | 30 minutes |
| Approve the private CA source | 20 minutes |
| Create the delegated issuance identity | 15 minutes |
| Publish the governed issuance profile | 30 minutes |
| Issue and evidence a governed certificate | 40 minutes |
| Full workflow | 135 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_TOKENimport 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
| Topic | Convention |
|---|---|
| cURL | Run 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. |
| Python | Run the examples in order, in one session. Later examples reuse earlier variables. |
| Value names | Values passed between steps use snake_case, such as business_unit_id. cURL exports the UPPER_SNAKE equivalent, such as BUSINESS_UNIT_ID. |
| Credentials | You 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. |
| Host | The examples use the US demo host demo.one.digicert.com. Replace it with the host for your tenant and region. |
| Pausing | Before 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.