Create an Upstream Certdog Issuer
From version: 1.18.0
A Certdog Issuer is a Certificate Issuer that sends its requests to a Certificate Issuer on another certdog (the upstream certdog). The certdog you configure it on (the RA certdog) acts as a Registration Authority: its users request, download and revoke certificates as normal, but the certificates are issued by the upstream certdog, through its REST API
The RA certdog never connects to the CA itself. The upstream issuer may be any type of issuer: a Local CA, Microsoft AD CS or EJBCA
This page describes the full setup, step by step. For why you might want to do this, and the concepts involved (the Certdog RA Service role, requests made on behalf of a user, where approvals happen), see Using Certdog in RA Mode
The steps are:
On the upstream certdog
On the RA certdog
Then, optionally, switch on Certificate Sync
Pre-Requisites
- Both certdogs must be version 1.18.0 or later
- The RA certdog must be able to reach the upstream certdog’s REST API over HTTPS. If there is a firewall between them, allow the RA certdog server to connect to the upstream certdog’s port (e.g. 443)
- If the upstream certdog’s TLS certificate was not issued by a CA trusted by the RA certdog’s Java trust store (e.g. it was issued by your own internal CA), you will need the PEM CA certificate(s) that issued it
- The Certificate Issuer that the RA will use must already exist on the upstream certdog. If DN requests will be made through the RA, a CSR Generator must be available on the RA certdog (see Create a CSR Generator)
In the examples below, the upstream certdog is at https://certdog.example.com/certdog and has a Certificate Issuer called Corp Local TLS Issuer. The RA certdog is at https://ra.example.com/certdog
On the Upstream Certdog
The RA certdog logs in to the upstream certdog with an API token belonging to a user account. That account decides what the RA may do. It should be used for nothing else
1. Create a team for the RA
Log in to the upstream certdog as an administrator. Select Teams from the menu and click Add New Team

- Enter a Team Name, e.g. RA Service - East
- Under Roles, add Certdog RA Service and remove the User role. This built-in role permits only what an RA certdog needs. See The Certdog RA Service Role
- Under Permitted Certificate Issuers, select only the issuer(s) the RA is to use. The RA can not see or use any other issuer
- Optionally, under Permitted IPs, enter the IP address of the RA certdog server, so the account can only be used from there. See IP Address Restricting
Click Add
The role can be viewed by selecting Roles from the menu and clicking Certdog RA Service:

If you use your own role instead, it must include the same end points and have Act On Behalf Of Others switched on (under Additional Permissions), otherwise requests from the RA are refused:

2. Create the RA’s user account
Select Users from the menu and click Add New User
Enter a Username (e.g. ra-east), an Email address (e.g. the PKI team’s address, so that notifications for this account reach someone) and a password, and add it to the team created above
Note that a certificate requested through the RA is owned, on the upstream certdog, by this account. The user who actually asked is recorded with it (see On Behalf Of)
See Users for more details
3. Generate an API token
Edit the user just created. Under API Tokens, enter a Token Name (e.g. East RA), set the Validity and click Generate Token

Click the token to copy it. It is only shown once. It is entered on the RA certdog in the next step
Choose a validity that fits your key rotation policy. When the token expires, the RA can no longer request certificates until a new one is entered. The RA certdog warns you 30 days before it expires (see Viewing and Editing the Issuer)
See API Tokens for more details
On the RA Certdog
4. Create the Certdog Issuer
Log in to the RA certdog as an administrator. Select Certificate Issuers from the menu and click Add New Issuer
Select Certdog Issuer as the CA Type and click Next

Connection

Enter the following:
- Name. The name users will see when requesting a certificate, e.g. Corp TLS (Central certdog)
- Upstream API URL. The address of the upstream certdog’s REST API, including
/api, e.g.https://certdog.example.com/certdog/api. Anhttp://address may be used for testing, but a warning is displayed as the API key would then be sent unencrypted - API Key. The token generated in step 3. It is stored encrypted, as a Credential, and is never displayed again
- Trusted Certificates. Optional. Paste the PEM CA certificate(s) that issued the upstream certdog’s TLS certificate if they are not trusted by the RA certdog’s Java trust store. Several certificates (e.g. a root and an intermediate) can be pasted one after the other
- Upstream Team. Optional. Only needed if the account is a member of more than one team on the upstream certdog. Enter the name of the team requests are to be made in
Click Get Available Issuers. The RA certdog connects to the upstream certdog with the details entered and lists the issuers the account is permitted to use. If this fails, the reason is displayed. See Troubleshooting
Select the Upstream Issuer that requests will be sent to. The upstream certdog’s version is shown beneath it
Only issuers in the RA team’s Permitted Certificate Issuers are listed. Issuers on the upstream certdog that are themselves Certdog Issuers are not listed, as an RA of an RA is not supported
Requests and Access

These are the same as for other issuers:
- Allow DN Requests. Allow users to request a certificate by entering a DN, with the RA certdog generating the key and CSR. The upstream issuer must also allow DN requests (the upstream certdog only ever receives a CSR, but it applies its own setting)
- DN Restriction. Optionally, a DN Restriction checked on the RA before a request is sent
- Authorise Teams. The teams on the RA certdog that may use this issuer
- Permitted CSR Generators. The CSR Generators that may be used for DN requests
Note that the upstream certdog applies its own rules to every request as well: its DN restrictions, its issuer’s settings and its workflows (including any approvals). The settings here can only narrow what is allowed, never widen it
Certificate Sync
Optionally, switch on Sync Certificates to bring the upstream issuer’s certificates into the RA certdog. See Certificate Sync below. This can also be switched on later
Click Add
The issuer’s CA certificates are read from the upstream issuer and stored with the issuer, so that certificates can be verified and chains built in the same way as for any other issuer
5. Give users access and request a certificate
Users on the RA certdog need to be in a team that is permitted to use the new issuer, as with any other issuer. Select Teams and check the team’s Permitted Certificate Issuers (the teams chosen under Authorise Teams will already have it). See Teams
Requests are made in the same way as for any other issuer, from the UI, the REST API, PowerShell, or ACME, SCEP or EST on the RA certdog. See Issuing a Certificate
For each request the RA certdog:
- Checks the request against its own settings (team, DN restriction, CSR generator)
- For a DN request, generates the key pair and CSR
- Sends the CSR to the upstream certdog, naming the user who made the request
- Stores the issued certificate, with the upstream certificate’s ID
On the RA certdog the certificate is owned by the user who requested it. The upstream certdog’s ID for the certificate is shown in the certificate’s Identifiers:

On the upstream certdog the certificate is owned by the RA’s account and shows who it was requested on behalf of. See What Each Certdog Shows
Revoking
Revoking a certificate on the RA certdog revokes it on the upstream certdog (recorded there on behalf of the user who revoked it), and so at the CA. If the upstream certdog does not revoke it, the certificate is not marked as revoked on the RA and the reason is displayed
Renewing
Renewing a certificate on the RA certdog sends a new request to the upstream certdog, in the same way as a new certificate
Viewing and Editing the Issuer
Select Certificate Issuers from the menu and click the issuer to display its details

This shows:
- Upstream certdog. The API URL, and the upstream certdog’s version
- Upstream Issuer. The issuer requests are sent to, and its type
- API Key Expires. When the API token expires. From 30 days before, a warning is displayed here and when editing the issuer
- Certificate Sync. Whether it is on and how often it runs, with a link to its status
Click View/Edit to change any of the settings
- To change the API key (e.g. before it expires), generate a new token on the upstream certdog and paste it into API Key. Leave API Key blank to keep the stored key. Revoke the old token on the upstream certdog once the new one is saved
- To refresh the CA certificates (e.g. after the upstream CA certificate has been renewed), edit the issuer and click Update. The CA certificates are read from the upstream issuer again each time the issuer is saved
- To send requests to a different upstream issuer, click Get Available Issuers and choose another
Requests Waiting for Approval Upstream
A request sent to the upstream certdog may not be issued straight away:
- The upstream certdog has a workflow that requires approval (Obtain Approval) for the issuer, or
- The upstream issuer is a Microsoft AD CS issuer whose template requires CA certificate manager approval (see Requests that require CA Manager Approval)
In either case the user on the RA certdog is told that the request is waiting:

The request is listed under Approvals > My Requests on the RA certdog, with a status of Pending CA Approval. Click it to see its details:

- Waiting For. Approval at the upstream certdog (a workflow approval) or The upstream certdog’s CA (held at a Microsoft CA)
- Upstream Request ID. The request’s ID on the upstream certdog. Give this to the approvers there to find it
- Last Checked and Message. When the RA certdog last asked, and what it was told
The request is approved (or rejected) on the upstream certdog, by its approvers, in the usual way. The approvers see the RA’s account as the Requestor and the user who asked as On Behalf Of:

The RA certdog checks with the upstream certdog every 5 minutes. Once the request has been decided:
- Issued: the certificate is added to the RA certdog in the same way as any other issued certificate (workflows for issued certificates run on the RA). The requester receives a notification and an email
- Denied: the requester receives a notification and an email, with the reason and who rejected it:

Clicking a pending request also displays:
- Check Now. Asks the upstream certdog straight away rather than waiting for the next check
- Withdraw. Stops the RA certdog following the request. This does not remove the request from the upstream certdog. Ask an approver there to reject it
If the request has not been decided after 30 days, the RA certdog stops checking and marks it as Expired. The requester is notified
DN requests and the Private Key Retention Period
For a DN request, the private key is generated by the RA certdog. If the request has to wait for approval, the RA certdog keeps the key (encrypted) until the certificate is issued. The PKCS#12 (PFX) can then be downloaded from the certificate’s page, for as long as the Private Key Retention Period in the RA certdog’s Settings allows
If the Private Key Retention Period is 0, keys are not kept, and a certificate issued for a request that had to wait would have no usable key. The user is told this when they make the request:

If requests through the RA may need approval, set the Private Key Retention Period on the RA certdog to more than 0, or have users request with their own CSR
ACME, SCEP and EST
A request made via ACME, SCEP or EST on the RA certdog that has to wait is followed in the same way, but the client is told that the certificate was not issued. For issuers used by these protocols, make sure the upstream issuer does not require approval
Certificate Sync
Certificate Sync keeps the RA certdog in step with the upstream issuer. The RA certdog asks the upstream certdog for the issuer’s new and changed certificates on a schedule, and imports them. This means the RA certdog has every certificate from the upstream issuer, not only those requested through the RA, for example:
- Certificates requested directly on the upstream certdog, or through another RA
- Certificates issued before the RA was set up
- Revocations made on the upstream certdog, and renewals
Private keys are never synced
To switch it on, edit the issuer and switch on Sync Certificates:

| Setting | Description |
|---|---|
| Sync Every | How often to check for new and changed certificates once it is up to date: 5 minutes, 15 minutes, 1 hour (the default), 6 hours or 1 day |
| Team | The team that imported certificates are added to |
| Owner | The user that owns imported certificates. Must be a member of the team. They receive a notification if the sync keeps failing |
| Include | Whether revoked and expired certificates are imported as well as issued ones |
| Issued After | Optional. Leaves certificates issued before this date out of the first sync |
| Extra Info | Optional. Text added to each imported certificate’s extra information. It may contain the tokens {upstreamCertId} (the upstream certdog’s ID for the certificate), {requester} (who the certificate was requested by, or on behalf of) and {caName} (this issuer’s name) |
| Extra Emails | Optional. Email addresses, separated by commas, that are also sent each imported certificate’s notifications (e.g. expiry reminders) |
| Track Expiry | Whether certdog sends expiry reminders for imported certificates |
Click Update. The first sync starts in the background and catches up from the start, a page at a time
How certificates are imported:
- Certificates the RA certdog already has (such as those requested through it) are recognised and not imported again. They are counted as Already In Certdog
- A certificate requested through another RA, or directly, is owned by the sync’s Owner. If the upstream certdog recorded that it was requested on behalf of a user who exists on this certdog and is a member of the sync’s Team, that user owns it instead
- A certificate revoked on the upstream certdog is marked as revoked on the RA certdog. A renewed certificate is updated
- Only certificates issued by this issuer’s CA certificates are imported
This uses the same ideas as Synchronising Certificates from AD CS, which has more detail on the status page
Sync Status
To see how the sync is progressing, click View Sync Status in the issuer’s details, or in the Sync Certificates section when editing the issuer

The status at the top right is Up to date, Catching up (during the first sync or a re-sync), Syncing, Error (with the reason) or Off
| Total | Meaning |
|---|---|
| Imported | Certificates added to this certdog |
| Already In Certdog | Certificates this certdog already had. Not imported again |
| Revocations Applied | Certificates marked as revoked because they were revoked upstream |
| Updated (e.g. Renewed) | Certificates brought up to date with a change made upstream |
| Rejected (Not From This Issuer) | Certificates that were not issued by this issuer’s CA certificates. See Troubleshooting |
| Failed Certificates | Certificates that could not be imported. Each is listed, with the reason, under Recent Failures |
| Failed Syncs In A Row | How many times in a row the sync has failed. The Owner is notified after three failures, and again when it is working |
Recent Syncs lists the most recent runs. Left Out counts certificates not imported because of the Include or Issued After settings
- Sync Now checks for new and changed certificates straight away
- Re-sync… reads all the upstream issuer’s certificates again from the start. Certificates already held are brought up to date, not added twice. Use this after changing Include or Issued After, or after fixing the cause of failures
The sync can also be controlled with the REST API: GET /admin/ca/certdog/{id}/sync (status), POST /admin/ca/certdog/{id}/sync/run (Sync Now) and POST /admin/ca/certdog/{id}/sync/reset (Re-sync)
Permissions
On the RA certdog, creating and editing Certdog Issuers, and their sync settings and status, requires a role that may manage Certificate Issuers (e.g. Global Admin or CA Manager). See Roles
On the upstream certdog, the RA’s account needs the Certdog RA Service role, or a role with the same end points and Act On Behalf Of Others switched on. See The Certdog RA Service Role
Troubleshooting
Errors from the upstream certdog are displayed when clicking Get Available Issuers, when saving the issuer and when requesting a certificate. They are also written to the RA certdog’s logs. Requests that reach the upstream certdog are logged there too, naming the RA’s account and the user it was on behalf of
The API key was not accepted. It may have expired or been revoked
The upstream certdog refused the API token (HTTP 401)
- Check the token has not expired or been revoked: on the upstream certdog, edit the RA’s user and look under API Tokens
- Check the account is enabled
- Generate a new token and enter it in the issuer’s API Key
The API key’s account is not allowed to do this. Give it the Certdog RA Service role
The upstream certdog accepted the token but the account’s roles do not permit the operation (HTTP 403)
On the upstream certdog, check the account’s team has the Certdog RA Service role. If you are using your own role, compare its end points with the Certdog RA Service role
If the account has Permitted IPs set, check the RA certdog’s IP address is included (as seen by the upstream certdog, e.g. after any NAT or proxy)
This account may not make requests on behalf of other users
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 account’s roles allow requests but not requests on behalf of other users. Use the Certdog RA Service role, or switch on Act On Behalf Of Others in the role you are using. See Act On Behalf Of Others
A secure connection to the upstream certdog could not be made
A secure connection to the upstream certdog at https://certdog.example.com/certdog/api could not be made. Check its TLS certificate is trusted (add its CA certificates to the issuer's Trusted Certificates). ...
The RA certdog does not trust the upstream certdog’s TLS certificate, or the name in the URL does not match it
- Paste the CA certificate(s) that issued the upstream certdog’s TLS certificate into Trusted Certificates (the root, and any intermediates)
- Check the host name in the Upstream API URL is one of the names in the upstream certdog’s TLS certificate
The upstream certdog could not be reached
The upstream certdog at https://certdog.example.com/certdog/api could not be reached: ...
- Check the Upstream API URL (host name, port and path, including
/api) - Check the RA certdog server can resolve the host name and connect to the port (e.g. a firewall between them)
- If the upstream certdog only allows the API from certain addresses, check the RA certdog’s address is allowed. See Restrict Access to the API
- If the RA certdog connects out through a proxy, check the proxy allows the connection
The upstream certdog’s API URL must be a complete address
The Upstream API URL must start with https:// (or http://), include the host name, and the path to the API, e.g. https://certdog.example.com/certdog/api
Get Available Issuers lists no issuers
- On the upstream certdog, check the RA’s team has the issuer under Permitted Certificate Issuers
- If the account is in several teams, enter the team to use in Upstream Team
- Issuers on the upstream certdog that are themselves Certdog Issuers are never listed
The upstream certdog does not offer the issuer with ID …
The issuer chosen is no longer available to the account: it was deleted on the upstream certdog, or removed from the RA team’s Permitted Certificate Issuers. Edit the issuer, click Get Available Issuers and choose an issuer again
A request stays Pending CA Approval
The request is waiting on the upstream certdog. Click it under Approvals > My Requests and note the Upstream Request ID. On the upstream certdog, an approver finds it under Approvals (the requestor is the RA’s account). For a request held at a Microsoft CA, a CA manager must issue it in the Certification Authority console
Once it is decided, the RA certdog picks it up within 5 minutes, or straight away with Check Now
The upstream certdog no longer has this request
The request was deleted from the upstream certdog. The RA certdog stops following it. Make the request again
A certificate was issued but its private key can not be downloaded
The request was a DN request that waited for approval, and the RA certdog’s Private Key Retention Period was 0 (or the period has passed). The key was not kept and can not be recovered. Set a Private Key Retention Period in Settings, revoke the certificate and request it again
Certificate sync needs a team and an owner
When Sync Certificates is switched on, a Team and an Owner must be chosen, and the owner must be a member of the team
Not issued by this issuer’s CA certificates
Not issued by this issuer's CA certificates, so it was not imported. If the upstream issuer's CA certificate has been renewed, save the issuer again to update the CA certificates held
These are counted as Rejected (Not From This Issuer). This usually happens when the upstream CA certificate has been renewed. Edit the issuer and click Update to read the CA certificates again, then click Re-sync…
The sync status is Error
The reason is displayed on the sync status page. Most errors are the same as those above (the API key, permissions, or connection). The sync tries again at the next scheduled time. The Owner is notified after three failures in a row, and again when it is working
If certificates are missing, check the Include and Issued After settings and whether they were counted as Already In Certdog, then use Re-sync…