Phase 2
Approve the private CA source
Select the issuing CA for internal TLS, record its approval evidence, assign it to the account, confirm its position under the approved root, and download the CA certificates.
Phase details
- Workstream
- CA approval · Step 1 of 1
- Product
- DigiCert Private CA
- Time
- 20 minutes
- Setup
- Mixed setup and verification
- Goal
- The internal TLS issuing CA is assigned to the account, its approval evidence is recorded, and the root and issuing CA certificates are validated.
- Inputs
admin_api_tokenaccount_idissuing_ca_nameroot_ca_name- Expected outputs
ica_idica_serial_numberroot_ca_idroot-ca.pemissuing-ca.pem- Prerequisite
- Define the governance boundary
Use DigiCert® Private CA to confirm that the issuing CA for the profile is the approved CA source for internal TLS. The central PKI team runs this phase with its setup credential. A DigiCert-hosted private CA connects to DigiCert® Trust Lifecycle Manager through the DigiCert® ONE account, so you don’t need a connector.
This phase runs before Publish the governed issuance profile because the profile binds to one issuing CA. Every certificate the profile issues:
- Chains through that CA to the approved root.
- Relies on that CA’s CRL for revocation status.
A private CA has no browser root program reviewing it, so the DigiCert® Trust Architecture Playbook’s private CA governance requires CA source approval before you tie any profile to the CA.
Repeat this phase at each CA source review, except Assign the issuing CA to the account, which is one-time setup. Record the results in your CA source registry, your governance record of each approved CA and its purpose, owner, and chain.
This phase assumes a two-tier hierarchy, where the approved root signs the issuing CA directly. If your hierarchy has a policy CA tier, change three things:
- When you record the issuing CA’s approval evidence,
issueris the policy CA, so check thatissuer.nameis the approved policy CA. After the save, setroot_ca_idto theidof the CA list item whosenamematches the root name. In the cURL session, setROOT_CA_ID. - When you confirm the issuing CA under the approved root, search
childrenrecursively. - When you validate the certificate path, include the policy CA certificate.
Phase prerequisites
Make sure you have:
- The
account_idfrom Define the governance boundary. - The display names of the approved root CA and the issuing CA dedicated to internal TLS, from your PKI owner or CA source registry.
- A setup credential with the
VIEW_CM_CAandVIEW_CM_HIERARCHYpermissions, plusMANAGE_CM_CA_ACCOUNTSif the issuing CA isn’t yet assigned to the account.
Endpoints used
| Method | Path | Purpose |
|---|---|---|
| GET | /certificate-authority/api/v1/ca | List accessible CAs and select the issuing CA. |
| GET | /certificate-authority/api/v1/ca/{id} | Record the issuing CA’s status, trust type, issuer, assignments, and revocation publication. |
| POST | /certificate-authority/api/v1/ca/{id}/accounts | Assign the issuing CA to the account when it isn’t assigned. |
| GET | /certificate-authority/api/v1/ca/{id}/hierarchy | Confirm that the issuing CA sits under the approved root. |
| GET | /certificate-authority/api/v1/ca/{id}/download | Download the root and issuing CA certificates in PEM format. |
Step 2.1: Select the internal TLS issuing CA
The profile in Publish the governed issuance profile names one issuing CA, so select the approved one explicitly by name. Don’t pick the first intermediate in the list, because an account commonly has issuing CAs for other purposes, such as device identity or code signing.
List the CAs the setup credential can access:
curl --fail-with-body --silent --show-error \
-X GET "https://demo.one.digicert.com/certificate-authority/api/v1/ca" \
-H "x-api-key: ${ADMIN_API_TOKEN}" \
-o certificate-authorities.jsonresponse = requests.get(
f"{base_url}/certificate-authority/api/v1/ca",
headers={"x-api-key": admin_api_token},
timeout=30,
)
response.raise_for_status()
certificate_authorities = response.json()
Path("certificate-authorities.json").write_text(response.text)A successful request returns 200 OK with the CAs in items, and total, offset, and limit. The sample shows the fields this step uses:
{
"items": [
{
"id": "<root-ca-id>",
"name": "Internal Root CA",
"cert_type": "root",
"status": "active"
},
{
"id": "<issuing-ca-id>",
"name": "Internal TLS Issuing CA",
"cert_type": "intermediate",
"status": "active"
},
{
"id": "<device-issuing-ca-id>",
"name": "Device Identity Issuing CA",
"cert_type": "intermediate",
"status": "active"
}
],
"total": 3
}
Confirm that the list is complete. The operation has no paging parameters, so a truncated list can hide the approved CA:
jq -e 'if .total == (.items | length) then true
else error("the CA list is truncated: \(.items | length) of \(.total)") end' \
certificate-authorities.jsonif certificate_authorities["total"] != len(certificate_authorities["items"]):
raise LookupError("The CA list is truncated; retrieve the CA by its approved ID")If the list is truncated or the approved CA is missing:
- Get the CA’s ID from your CA source registry through a trusted channel.
- Set
ica_idto that ID. In the cURL session, setICA_ID. - Continue to Record the issuing CA’s approval evidence, which retrieves the CA by its ID.
Select the approved issuing CA by name, and save its id as ica_id. Replace <issuing-ca-name> with the CA’s display name. The save stops unless exactly one intermediate CA has that name. Resolve duplicate names with your PKI owner:
ISSUING_CA_NAME="<issuing-ca-name>"
jq --arg issuing_ca_name "${ISSUING_CA_NAME}" '
[.items[] | select(.name == $issuing_ca_name and .cert_type == "intermediate")]
| if length == 1 then .[0] else error("expected one match, found \(length)") end
' certificate-authorities.json > certificate-authority.json
ICA_ID="$(jq -er '.id' certificate-authority.json)"
export ICA_ID
jq '{name, cert_type, status}' certificate-authority.jsonissuing_ca_name = "<issuing-ca-name>"
matches = [
item for item in certificate_authorities["items"]
if item["name"] == issuing_ca_name and item["cert_type"] == "intermediate"
]
if len(matches) != 1:
raise LookupError(f"Expected one match, found {len(matches)}")
certificate_authority = matches[0]
Path("certificate-authority.json").write_text(
json.dumps(certificate_authority, indent=2)
)
ica_id = certificate_authority["id"]
print(json.dumps({
"name": certificate_authority["name"],
"cert_type": certificate_authority["cert_type"],
"status": certificate_authority["status"],
}, indent=2))Confirm that name is the approved issuing CA and status is active.
id, a 32-character hexadecimal string. Don’t confuse it with the CA’s serial_number.Step 2.2: Record the issuing CA’s approval evidence
Retrieve the issuing CA, and keep the response as approval evidence for your CA source registry:
curl --fail-with-body --silent --show-error \
-X GET "https://demo.one.digicert.com/certificate-authority/api/v1/ca/${ICA_ID}" \
-H "x-api-key: ${ADMIN_API_TOKEN}" \
-o issuing-ca.jsonresponse = requests.get(
f"{base_url}/certificate-authority/api/v1/ca/{ica_id}",
headers={"x-api-key": admin_api_token},
timeout=30,
)
response.raise_for_status()
issuing_ca = response.json()
Path("issuing-ca.json").write_text(response.text)A successful request returns 200 OK with the CA record, which the request saves as issuing-ca.json. The sample shows the fields the approval evidence uses:
{
"id": "<issuing-ca-id>",
"name": "Internal TLS Issuing CA",
"status": "active",
"cert_type": "intermediate",
"trust_type": "private",
"serial_number": "<issuing-ca-serial-number>",
"thumbprint_sha256": "<sha256-thumbprint>",
"issuer": {
"id": "<root-ca-id>",
"name": "Internal Root CA"
},
"configuration": {
"issue_end_entities": true,
"allowed_signature_algorithms": [
"sha256WithRSA",
"sha384WithRSA"
]
},
"active_crl": {
"file_name": "<crl-file-name>"
},
"active_crl_cdps": {
"cdps": [
"http://crl.example.com/<root-crl-file-name>"
]
},
"revocation": {
"revoked": false
},
"validity": {
"valid_to": "<YYYY-MM-DD>T<HH:MM:SS>Z"
},
"account_assignments": [
{
"id": "<account-id>",
"name": "<account-name>"
}
]
}
Save serial_number as ica_serial_number and issuer.id as root_ca_id:
ICA_SERIAL_NUMBER="$(jq -er '.serial_number' issuing-ca.json)"
ROOT_CA_ID="$(jq -er '.issuer.id' issuing-ca.json)"
export ICA_SERIAL_NUMBER ROOT_CA_ID
jq '{status, cert_type, trust_type, "issuer.name": .issuer.name, "configuration.issue_end_entities": .configuration.issue_end_entities, "configuration.allowed_signature_algorithms": .configuration.allowed_signature_algorithms, "revocation.revoked": .revocation.revoked, "validity.valid_to": .validity.valid_to, account_assignments}' issuing-ca.jsonica_serial_number = issuing_ca["serial_number"]
root_ca_id = issuing_ca["issuer"]["id"]
print(json.dumps({
"status": issuing_ca["status"],
"cert_type": issuing_ca["cert_type"],
"trust_type": issuing_ca["trust_type"],
"issuer.name": issuing_ca["issuer"]["name"],
"configuration.issue_end_entities": issuing_ca["configuration"]["issue_end_entities"],
"configuration.allowed_signature_algorithms": issuing_ca["configuration"]["allowed_signature_algorithms"],
"revocation.revoked": issuing_ca["revocation"]["revoked"],
"validity.valid_to": issuing_ca["validity"]["valid_to"],
"account_assignments": issuing_ca["account_assignments"],
}, indent=2))Check each field before you continue. The summary doesn’t print active_crl or active_crl_cdps, so read those two in issuing-ca.json:
| Field | Expected value | Why it matters |
|---|---|---|
status | active | Only an active CA certificate can sign certificates. |
cert_type | intermediate | End-entity certificates come from an issuing CA, never from the root. |
trust_type | private | The profile issues private TLS certificates. |
issuer.name | The approved root CA | The issuing CA chains to the trust anchor that relying parties install. |
configuration.issue_end_entities | true | The CA can sign end-entity certificates. |
configuration.allowed_signature_algorithms | No SHA-1 algorithm | The Trust Architecture Playbook’s cryptographic baseline requires SHA-256 or stronger, because SHA-1 is vulnerable to collision attacks. |
active_crl.file_name | Present | The CA publishes a CRL. Each certificate it issues has a CRL distribution point that ends in this file name. |
active_crl_cdps.cdps | Present | The issuing CA’s own certificate lists these URLs. Relying parties check them to learn whether the root revoked the issuing CA. |
revocation.revoked | false | You can’t approve a revoked CA. |
validity.valid_to | After the longest certificate validity the profile allows | A CA can’t issue certificates that outlive it. |
account_assignments[].id | Contains account_id | The account can request certificates from the CA. |
Add these to the CA source registry:
thumbprint_sha256from the CA record.- Any SHA-1 finding. Issuing CAs can include
sha1WithRSAinallowed_signature_algorithms. If the list includes it, record the finding and ask the CA owner to remove it. The profile fixes its own signature algorithm, but the CA setting is part of the CA source evidence. - The OCSP configuration, from the CA owner. The CA record doesn’t report whether OCSP is available.
configuration.ocspandconfiguration.ocsp_responderdescribe only whether the CA overrides the account’s global settings.
Step 2.3: Assign the issuing CA to the account
Skip this step if account_assignments already contains account_id. The account can request certificates only from a CA assigned to it.
Assign the issuing CA to the account:
jq -n --arg account_id "${ACCOUNT_ID}" '{accounts: [$account_id]}' |
curl --fail-with-body --silent --show-error \
-X POST "https://demo.one.digicert.com/certificate-authority/api/v1/ca/${ICA_ID}/accounts" \
-H "x-api-key: ${ADMIN_API_TOKEN}" \
-H "Content-Type: application/json" \
--data-binary @-response = requests.post(
f"{base_url}/certificate-authority/api/v1/ca/{ica_id}/accounts",
headers={"x-api-key": admin_api_token},
json={"accounts": [account_id]},
timeout=30,
)
response.raise_for_status()A successful request returns 204 No Content.
Confirm the assignment
The assignment response has no body, so retrieve the issuing CA again:
curl --fail-with-body --silent --show-error \
-X GET "https://demo.one.digicert.com/certificate-authority/api/v1/ca/${ICA_ID}" \
-H "x-api-key: ${ADMIN_API_TOKEN}" | jq '.'response = requests.get(
f"{base_url}/certificate-authority/api/v1/ca/{ica_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 CA record. The sample shows the field this step checks:
{
"account_assignments": [
{
"id": "<account-id>",
"name": "<account-name>"
}
]
}
Confirm that account_assignments now contains an entry whose id is account_id.
Step 2.4: Confirm the issuing CA under the approved root
The approved root’s hierarchy confirms that the issuing CA chains to the root, and it lists every other intermediate under the root for your CA source review.
400 with ca_is_not_root.Retrieve the approved root’s hierarchy with root_ca_id:
curl --fail-with-body --silent --show-error \
-X GET "https://demo.one.digicert.com/certificate-authority/api/v1/ca/${ROOT_CA_ID}/hierarchy" \
-H "x-api-key: ${ADMIN_API_TOKEN}" | jq '.'response = requests.get(
f"{base_url}/certificate-authority/api/v1/ca/{root_ca_id}/hierarchy",
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 root and its children. The sample shows the fields this step checks:
{
"id": "<root-ca-id>",
"name": "Internal Root CA",
"cert_type": "root",
"status": "active",
"children": [
{
"id": "<issuing-ca-id>",
"name": "Internal TLS Issuing CA",
"cert_type": "intermediate",
"status": "active",
"children": []
},
{
"id": "<device-issuing-ca-id>",
"name": "Device Identity Issuing CA",
"cert_type": "intermediate",
"status": "active",
"children": []
}
]
}
Confirm that:
nameis the approved root name.cert_typeisroot, andstatusisactive.childrencontains an entry whoseidisica_id.
Before you approve the CA source, raise any intermediate under the root that you can’t account for with the PKI owner.
Step 2.5: Download the CA certificates
Download two certificates in PEM format:
root-ca.pem: the root CA certificate, which relying parties install as their trust anchor.issuing-ca.pem: the issuing CA certificate.
You also use both files to validate the issued certificate’s path in Issue and evidence a governed certificate. With format=pem, the response body is the certificate itself, so each request writes it straight to a file. The format parameter also accepts p7b and der.
Download the root CA certificate
Send the request with root_ca_id, and write the response to root-ca.pem:
curl --fail-with-body --silent --show-error \
-X GET "https://demo.one.digicert.com/certificate-authority/api/v1/ca/${ROOT_CA_ID}/download" \
-H "x-api-key: ${ADMIN_API_TOKEN}" \
-G \
--data-urlencode "format=pem" \
-o root-ca.pemresponse = requests.get(
f"{base_url}/certificate-authority/api/v1/ca/{root_ca_id}/download",
headers={"x-api-key": admin_api_token},
params={"format": "pem"},
timeout=30,
)
response.raise_for_status()
Path("root-ca.pem").write_bytes(response.content)A successful request returns 200 OK with the root CA certificate in PEM format.
Download the issuing CA certificate
Send the same request with ica_id, and write the response to issuing-ca.pem:
curl --fail-with-body --silent --show-error \
-X GET "https://demo.one.digicert.com/certificate-authority/api/v1/ca/${ICA_ID}/download" \
-H "x-api-key: ${ADMIN_API_TOKEN}" \
-G \
--data-urlencode "format=pem" \
-o issuing-ca.pemresponse = requests.get(
f"{base_url}/certificate-authority/api/v1/ca/{ica_id}/download",
headers={"x-api-key": admin_api_token},
params={"format": "pem"},
timeout=30,
)
response.raise_for_status()
Path("issuing-ca.pem").write_bytes(response.content)A successful request returns 200 OK with the issuing CA certificate in PEM format.
Validate the certificate path
Inspect both files and confirm the issuing CA’s path to the root. These are local OpenSSL commands, the same for both the cURL and Python paths:
openssl x509 -in root-ca.pem -noout -subject -issuer -serial -fingerprint -sha256
openssl x509 -in issuing-ca.pem -noout -subject -issuer -serial -fingerprint -sha256 \
-ext basicConstraints,keyUsage,extendedKeyUsage
openssl verify -CAfile root-ca.pem issuing-ca.pem
Confirm that:
openssl verifyreportsissuing-ca.pem: OK.- The issuing CA’s
serialmatchesica_serial_number.
Record the root certificate’s SHA-256 fingerprint in the CA source registry.
root-ca.pem to trust stores, verify its SHA-256 fingerprint through a separate trusted channel.Phase 2 checkpoint
-
ica_ididentifies an active, private, intermediate CA that can issue end-entity certificates and is assigned toaccount_id. - The approval evidence records the issuer, signature algorithms, revocation publication, validity, and assignment, and any SHA-1 finding is logged with the CA owner.
- The approved root’s hierarchy lists
ica_idamong its children. -
openssl verify -CAfile root-ca.pem issuing-ca.pemsucceeds, and the issuing CA serial matchesica_serial_number. - The CA source registry records
thumbprint_sha256, the OCSP configuration, and the root certificate’s SHA-256 fingerprint, verified through a separate trusted channel.
When you also complete Create the delegated issuance identity, continue to Publish the governed issuance profile.