---
title: "Approve the private CA source"
description: "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."
source_url: https://dev.digicert.com/solutions/governed-tls-issuance/phase-2-approved-ca-source.html
---
# 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 metadata
- Phase: 2
- Workstream: CA approval — Step 1 of 1
- Product: DigiCert Private CA
- 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.
- Estimated time: 20 minutes
- Inputs: admin_api_token, account_id, issuing_ca_name, root_ca_name
- Prerequisite: [Define the governance boundary](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-1-governance-boundary.md)
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](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-4-governed-profile.md) 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](#step-23-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](#step-22-record-the-issuing-cas-approval-evidence), `issuer` is the policy CA, so check that `issuer.name` is the approved policy CA. After the save, set `root_ca_id` to the `id` of the CA list item whose `name` matches the root name. In the cURL session, set `ROOT_CA_ID`.
- When you [confirm the issuing CA under the approved root](#step-24-confirm-the-issuing-ca-under-the-approved-root), search `children` recursively.
- When you [validate the certificate path](#validate-the-certificate-path), include the policy CA certificate.
## Phase prerequisites
Make sure you have:
- The `account_id` from [Define the governance boundary](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-1-governance-boundary.md).
- 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_CA` and `VIEW_CM_HIERARCHY` permissions, plus `MANAGE_CM_CA_ACCOUNTS` if 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](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-4-governed-profile.md) 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**
```bash
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.json
```
**Python**
```python
response = 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:
```json
{
"items": [
{
"id": "",
"name": "Internal Root CA",
"cert_type": "root",
"status": "active"
},
{
"id": "",
"name": "Internal TLS Issuing CA",
"cert_type": "intermediate",
"status": "active"
},
{
"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:
**cURL**
```bash
jq -e 'if .total == (.items | length) then true
else error("the CA list is truncated: \(.items | length) of \(.total)") end' \
certificate-authorities.json
```
**Python**
```python
if 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:
1. Get the CA's ID from your CA source registry through a trusted channel.
1. Set `ica_id` to that ID. In the cURL session, set `ICA_ID`.
1. Continue to [Record the issuing CA's approval evidence](#step-22-record-the-issuing-cas-approval-evidence), which retrieves the CA by its ID.
Select the approved issuing CA by name, and save its `id` as `ica_id`. Replace `` with the CA's display name. The save stops unless exactly one intermediate CA has that name. Resolve duplicate names with your PKI owner:
**cURL**
```bash
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.json
```
**Python**
```python
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`.
> **Important**
>
> Profiles reference the issuing CA by its `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**
```bash
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.json
```
**Python**
```python
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()
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:
```json
{
"id": "",
"name": "Internal TLS Issuing CA",
"status": "active",
"cert_type": "intermediate",
"trust_type": "private",
"serial_number": "",
"thumbprint_sha256": "",
"issuer": {
"id": "",
"name": "Internal Root CA"
},
"configuration": {
"issue_end_entities": true,
"allowed_signature_algorithms": [
"sha256WithRSA",
"sha384WithRSA"
]
},
"active_crl": {
"file_name": ""
},
"active_crl_cdps": {
"cdps": [
"http://crl.example.com/"
]
},
"revocation": {
"revoked": false
},
"validity": {
"valid_to": "TZ"
},
"account_assignments": [
{
"id": "",
"name": ""
}
]
}
```
Save `serial_number` as `ica_serial_number` and `issuer.id` as `root_ca_id`:
**cURL**
```bash
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.json
```
**Python**
```python
ica_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_sha256`** from the CA record.
- **Any SHA-1 finding.** Issuing CAs can include `sha1WithRSA` in `allowed_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.ocsp` and `configuration.ocsp_responder` describe 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:
**cURL**
```bash
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 @-
```
**Python**
```python
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**
```bash
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 '.'
```
**Python**
```python
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:
```json
{
"account_assignments": [
{
"id": "",
"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.
> **Note**
>
> The operation accepts only a root CA ID. An intermediate CA ID returns `400` with `ca_is_not_root`.
Retrieve the approved root's hierarchy with `root_ca_id`:
**cURL**
```bash
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 '.'
```
**Python**
```python
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:
```json
{
"id": "",
"name": "Internal Root CA",
"cert_type": "root",
"status": "active",
"children": [
{
"id": "",
"name": "Internal TLS Issuing CA",
"cert_type": "intermediate",
"status": "active",
"children": []
},
{
"id": "",
"name": "Device Identity Issuing CA",
"cert_type": "intermediate",
"status": "active",
"children": []
}
]
}
```
Confirm that:
- `name` is the approved root name.
- `cert_type` is `root`, and `status` is `active`.
- `children` contains an entry whose `id` is `ica_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](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-5-governed-issuance.md). 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**
```bash
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.pem
```
**Python**
```python
response = 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**
```bash
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.pem
```
**Python**
```python
response = 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:
```bash
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 verify` reports `issuing-ca.pem: OK`.
- The issuing CA's `serial` matches `ica_serial_number`.
Record the root certificate's SHA-256 fingerprint in the CA source registry.
> **Important**
>
> Before you distribute `root-ca.pem` to trust stores, verify its SHA-256 fingerprint through a separate trusted channel.
## Phase 2 checkpoint
- [ ] `ica_id` identifies an active, private, intermediate CA that can issue end-entity certificates and is assigned to `account_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_id` among its children.
- [ ] `openssl verify -CAfile root-ca.pem issuing-ca.pem` succeeds, and the issuing CA serial matches `ica_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](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-3-delegated-identity.md), continue to [Publish the governed issuance profile](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-4-governed-profile.md).
## Outputs and handoff
| Output | Produced in | Used by |
| --- | --- | --- |
| `ica_id` | Select the internal TLS issuing CA: list response `items[].id` | [Publish the governed issuance profile](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-4-governed-profile.md), [Issue and evidence a governed certificate](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-5-governed-issuance.md) |
| `ica_serial_number` | Record the issuing CA's approval evidence: response `serial_number` | Operations, audit, or cleanup |
| `root_ca_id` | Record the issuing CA's approval evidence: response `issuer.id`, or with a policy CA tier, the root's `id` from the CA list | Operations, audit, or cleanup |
| `root-ca.pem` | Download the CA certificates: root CA response body | [Issue and evidence a governed certificate](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-5-governed-issuance.md) |
| `issuing-ca.pem` | Download the CA certificates: issuing CA response body | [Issue and evidence a governed certificate](https://dev.digicert.com/md/solutions/governed-tls-issuance/phase-5-governed-issuance.md) |