Certdog Architecture

The certdog application is made up of the following main components:

image-20261203092002666

The components are broadly independent and can therefore be run on separate servers/containers, which is the case when deployed as a Kubernetes cluster

image-20260508162003153 The Console (User Interface)

A web based front end that allows for system configuration and the management of certificates (requesting, searching, revoking etc.)

It allows users and administrators to login and perform operations. Available operations are dependant on what privileges the logged in user has e.g. a standard user will not have any administrative (e.g. user management) operations available

The UI performs very little processing. All operations are handed off to the API making it a lightweight component. This this also means that everything that you can do via the UI can be done via the REST API

image-20260508162015385 The REST API

This is available to all users who have a valid logon. That is, if they can authenticate to the UI they can make use of the REST API

Available operations can be viewed using the Swagger interface that can be accessed at this location:

https://[servername]/certdog/api/swagger-ui.html

E.g.

https://127.0.0.1/certdog/api/swagger-ui.html

If you wish to develop your own applications that make use of certdog features, you should develop against this API

image-20260508162142737 The ACME Service

This provides the ACME interface. It is configured via the Console (or REST API) but operates as its own service

image-20260508162138034 The SCEP Service

This provides the SCEP interface. As for ACME it is also configured via the Console but operates as a separate service

image-20261203092049105 The EST Service

Provides the Enrolment over Secure Transport service. Configuration is via the UI Console (or REST API) but also runs as a separate service.

image-20261203092153675 The SCEP Service

Provides the Simple Certificate Enrolment Protocol service.

image-20260508162148316 OCSP and CRL Services

The OCSP and CRL services provide the revocation checking capabilities for the internal local CAs.

image-20260508162023197 The Database

Certdog uses a mongo database which offers speed and flexibility. For example, you may host your database locally (the default), on a separate server or in the cloud (MongoDB Atlas)

You can use a dedicated instance or use an existing instance you already have in place

If any other components are updated, there is usually no need to also update the database

There are several simple mechanisms for backing up the data

Sensitive data stored in the database is encrypted by the API service before being stored

image-20260508162316400 The ADCS Agent

This is the component that interfaces with the Microsoft CA (Active Directory Certificate Services). It is only required if Microsoft CAs are being used

From version 1.18 the ADCS Agent connects out to the REST API over HTTPS and holds that connection open. This means that as soon as a request is placed, the API can push the request to the agent for immediate processing. The agent does not connect to the database and nothing needs to connect in to the agent, which allows it to be installed on the CA server or in another domain with only the HTTPS port to certdog being required

Each agent has its own key and must be approved by an administrator before it can connect. The agent will only connect to a certdog server whose TLS certificate it trusts

In versions before 1.18 this component was the ADCS Driver, which communicates directly with the database. The driver is still supported and is shown in the diagram above

Certdog as a Registration Authority

From version 1.18 a certdog can request certificates from another certdog, through a Certdog Issuer. The certdog users work with (the RA certdog) then calls the other certdog’s REST API over HTTPS. Only the other certdog (the upstream certdog) connects to the CAs, so it, and the CA components above, can be placed where users can not reach them. See Using Certdog in RA Mode

By default all communication between the components is protected via TLS