Using Certdog in RA Mode
From version: 1.18.0
A certdog can act as a Registration Authority (RA) for another certdog. Users request, download, renew and revoke certificates on the RA certdog, which passes the requests to a Certificate Issuer on the upstream certdog. Only the upstream certdog connects to the CAs
This is set up by creating a Certdog Issuer on the RA certdog. This page explains why you might use it and how it works. For the step by step setup, see Create an Upstream Certdog Issuer
Why use RA Mode?
Keep your CAs, and the certdog that holds them, out of reach
The upstream certdog holds the CA connections: Local CA keys, AD CS agents, EJBCA credentials. It can sit in a protected network that users and applications can not reach. The RA certdog, which they can reach, holds none of these. It has only an API key that allows it to request certificates from the issuers it has been given
Give other parts of the organisation their own certdog, without access to the CAs
A business unit, a partner, a subsidiary or a separate environment (e.g. a DMZ, a cloud subscription or a test network) can run its own certdog with its own users, teams, settings, workflows and integrations. It can issue certificates from your central CAs, but only from the issuers you choose, and can not see or change how they are configured
One policy and one audit trail
Every request from every RA arrives at the upstream certdog. Its DN restrictions, issuer settings, workflows and approvals apply to all of them, and its history and logs record each request, including the user on the RA certdog who made it
Separate front ends
Each RA certdog has its own login, Active Directory or OAuth integration, ACME, SCEP and EST services and notifications. These can be different for each site without affecting the central certdog
Concepts

Upstream certdog and RA certdog
The upstream certdog is a normal certdog with Certificate Issuers connected to CAs. Nothing is installed on it for RA mode: it only needs a team and user account for each RA
The RA certdog is a normal certdog that has one or more Certdog Issuers. It can also have other types of issuer of its own
Both must be version 1.18.0 or later. One upstream certdog can serve several RA certdogs. Each should have its own account, so that requests can be told apart and an RA can be shut off on its own
The Certdog Issuer
A Certdog Issuer is a Certificate Issuer (CA Type Certdog Issuer) that sends requests to one issuer on the upstream certdog, through its REST API. It holds:
- The upstream certdog’s API URL, and the Trusted Certificates for its TLS certificate if needed
- An API Key (an API token of the RA’s account on the upstream certdog). This is stored as an encrypted Credential
- The Upstream Issuer it sends requests to
- The usual issuer settings for the RA certdog’s users: teams, DN restriction, CSR generators and DN requests
To use several upstream issuers, create a Certdog Issuer for each
An RA certdog can not be the upstream certdog of another RA (an RA of an RA). Certdog Issuers are not offered to an RA
The Certdog RA Service role
On the upstream certdog, the RA’s account is a member of a team with the built-in Certdog RA Service role. This role allows only what an RA needs:
| What | End points |
|---|---|
| List the issuers it may use | GET /admin/ca (names, types and CA certificates only. Connection details and credentials are not returned) |
| Request certificates | POST /certs/requestp10 |
| Revoke certificates | POST /certs/revoke, GET /certs/revocationreasons |
| Follow requests that are waiting | GET /certs/{id}, GET /approval/{id}, GET /certs/pendingca/{id} |
| Read an issuer’s certificates for Certificate Sync | POST /certs/sync/page |
It also has Act On Behalf Of Others switched on (see below)
As with any role, certificate permissions only apply to the issuers in the team’s Permitted Certificate Issuers. This is what decides which issuers the RA can use
The account can not change any configuration, approve requests, or see the CAs’ settings
On Behalf Of
The RA certdog logs in to the upstream certdog as its own account, but each request it sends also names the user on the RA certdog who made it (the onBehalfOf field of the request). This is recorded on the upstream certdog:
- In the certificate’s history, e.g. Certificate created by user ‘ra-east’ on behalf of ‘alice’ (alice@example.local) via ‘https://ra.example.com/certdog’
- In the certificate’s details, as Requested on behalf of
- In the approval, as On Behalf Of, so approvers know who is asking
- In the logs
On the upstream certdog the certificate is owned by the RA’s account. The user named is only recorded, for the audit trail. It is never used to decide what is allowed: that is decided by the RA’s account and its team. The user named does not need an account on the upstream certdog
Revocations are recorded on behalf of the user who revoked the certificate on the RA certdog in the same way
The address the RA certdog reports itself as (via …) is the System URL in the RA certdog’s Settings. If this is not set, certdog RA is recorded instead. Set it so the upstream certdog’s records show which RA a request came from
Act On Behalf Of Others
An account may only name another user in a request if one of its roles has Act On Behalf Of Others switched on (in the role’s Additional Permissions). Requests that name a user from any other account are refused with:
This account may not make requests on behalf of other users. Give it a role that allows this, such as Certdog RA Service, or leave out onBehalfOf
The Certdog RA Service role has it switched on. Only switch it on in your own roles for accounts used by an RA certdog or a similar trusted service
Both certdogs’ rules apply
A request through an RA must pass the rules of both certdogs:
- On the RA certdog: the user’s team must be permitted to use the Certdog Issuer, and the issuer’s DN restriction, DN request and CSR generator settings apply. Workflows on the RA certdog run as for any other issuer
- On the upstream certdog: the RA team must be permitted to use the upstream issuer, and that issuer’s settings, DN restrictions and workflows apply
So the RA certdog can narrow what is allowed but never widen it. For example, an RA can only allow DN requests if the upstream issuer allows them
Approvals happen upstream
If a workflow on the upstream certdog requires approval, or the upstream CA holds the request for a CA manager, the request waits on the upstream certdog. The user on the RA certdog sees it under Approvals > My Requests as Pending CA Approval, and the RA certdog checks every 5 minutes until it is issued or rejected. The approvers work on the upstream certdog, where they see who the request is on behalf of
Approval workflows on the RA certdog itself also work, and run before the request is sent
See Requests Waiting for Approval Upstream
Certificate Sync
Optionally, a Certdog Issuer can sync the upstream issuer’s certificates to the RA certdog, so that the RA certdog has all of them (including those issued directly on the upstream certdog or through another RA), and picks up revocations and renewals made upstream. Private keys are never synced
See Certificate Sync
Setting it up
The full steps, with screenshots, are in Create an Upstream Certdog Issuer. In summary:
On the upstream certdog
- Make sure the Certificate Issuer the RA will use exists
- Create a team with the Certdog RA Service role, with only that issuer under Permitted Certificate Issuers, and optionally the RA server’s IP address under Permitted IPs
- Create a user for the RA in that team
- Generate an API token for the user
On the RA certdog
- Set the System URL in Settings, and if users will make DN requests that may need approval, the Private Key Retention Period
- Create a Certdog Issuer with the upstream certdog’s API URL, the API token and, if needed, the Trusted Certificates. Click Get Available Issuers and choose the upstream issuer
- Give the RA certdog’s teams access to the issuer and request a certificate
- Optionally, switch on Certificate Sync
What Each Certdog Shows
On the RA certdog
- The certificate is owned by the user who requested it, in their team, as for any other issuer
- The certificate’s Identifiers include the Upstream certificate ID, the certificate’s ID on the upstream certdog
- Requests waiting upstream are listed in Approvals > My Requests, with the Upstream Request ID
- The issuer’s details show the upstream certdog, the upstream issuer and when the API key expires
On the upstream certdog
- The certificate is owned by the RA’s account, in the RA team
- The certificate’s details show who it was Requested on behalf of, and from which RA:

- The certificate’s history and the logs name the RA’s account and the user
- Approvals show the RA’s account as the Requestor and the user as On Behalf Of
If users on the upstream certdog need to see certificates requested through an RA (e.g. to monitor or revoke them centrally), give them a role whose Users Can See allows it, or make them members of the RA team. See Roles
Security Considerations
- Use HTTPS. The API key is sent with every request. Use an
https://API URL and, where the upstream certdog’s TLS certificate is from an internal CA, add that CA to the issuer’s Trusted Certificates rather than trusting it more widely - One account per RA, used for nothing else. Give it only the Certdog RA Service role and only the issuers that RA needs. Do not add it to other teams
- Restrict by IP. Set Permitted IPs on the RA team to the RA certdog’s address, so a stolen API key can not be used from elsewhere. See IP Address Restricting
- Rotate the API key. Give the API token a validity period, and replace it before it expires (the RA certdog warns 30 days before). Revoke the old token on the upstream certdog. If an RA is compromised, revoke its token (or disable its account) on the upstream certdog: the RA can then do nothing
- Use approval workflows upstream for issuers where a person should check requests, regardless of which RA they come from
- Protect the RA certdog as you would any certdog: it holds the API key and, for DN requests, private keys it has generated. See Restrict Access to the API
Notes and Limitations
- Both certdogs must be version 1.18.0 or later
- An RA certdog can not be the upstream of another RA
- The upstream certdog only ever receives a CSR. For DN requests, keys are generated and held on the RA certdog. Private keys are never sent to, or synced from, the upstream certdog
- ACME, SCEP and EST on the RA certdog can use a Certdog Issuer like any other issuer. If the request has to wait for approval upstream, the client is told the certificate was not issued
- Withdrawing a waiting request on the RA certdog does not remove it from the upstream certdog
Troubleshooting
See Troubleshooting in Create an Upstream Certdog Issuer, which covers:
- The API key was not accepted
- The API key’s account is not allowed to do this
- This account may not make requests on behalf of other users
- A secure connection to the upstream certdog could not be made
- The upstream certdog could not be reached
- Get Available Issuers lists no issuers
- A request stays Pending CA Approval
- A certificate was issued but its private key can not be downloaded
- Certificate sync problems