Link Search Menu Expand Document

Certdog Windows Installation

The following steps outline the steps required to install the Certdog on a single system

If the pre-requisites are in place, the entire installation should not take more than 10 minutes

If you don’t want to read any details right now and just want to quickly download to try things out - see the Quick Installation Guide


The system may be installed on the following operating systems:

  • Windows Server 2016

  • Windows Server 2019

  • Windows 10 1

The following components are required:

  • .NET 4.8 Runtime

  • Visual C++ Runtime (this will be installed by the installer if not present)

You must have local Administrator privileges on the system

1. Download the Installer

Contact support for a download link. If you have an FTP account it will be placed in your download area

1.1 Verify the download

To verify the downloaded file, perform the following operations:

Open a command prompt or PowerShell window and navigate to the download location e.g.


At the prompt type:

certutil -hashfile sha1

Or, if you wish to produce the longer SHA-256 hash, type:

certutil -hashfile sha256


C:\temp\downloads>certutil -hashfile sha256
SHA256 hash of c:\Users\myname\Downloads\
CertUtil: -hashfile command completed successfully.

Compare the hash value produced with the following checksums:

  • SHA1: 1b4846aaa36f05cc267cc7593dec11ba3e913260

  • SHA256: 31f9d0a7e4a6a7008bc0ef154b92b30cd7792e55e945901a14f8be782a83f431

Free Version:

  • SHA1: 70f513df4f526c9582f8623bb5e178af81218452

  • SHA256: a1d9475c84baca8679fc3883fd1dbc5280951dace3a92d844555b04e01d9449e

If they differ, the download is corrupt or has been altered. Attempt the download again, the file sizes should be over 100Mb. If hashes still don’t match please contact

If the hashes match then right click the file and choose Properties. Tick the Unblock option at the bottom of the dialog (if present) and click OK


1.2 Unzip

Unzip this to a location on the target machine. E.g.


But you can unzip to a location of your choice e.g.

c:\program files\krestfield\certdog

Open a PowerShell prompt as Administrator and navigate to this folder e.g.

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\system32> cd "C:\certdog"
PS C:\certdog>

Run dir and check the file structure looks something like the following:

    Directory: C:\Program Files\Krestfield\certdog

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        06/01/2021     17:46                bin
d-----        05/01/2021     16:01                config
d-----        08/01/2021     11:27                install
d-----        07/01/2021     15:22                java
d-----        07/01/2021     15:22                logs
d-----        06/01/2021     15:48                tomcat

If you don’t see the install directory, the unzipping process may have failed. Check that you have the correct permissions, then delete the certdog folder and attempt the unzip process again

2. Run the Installer

From the PowerShell prompt, navigate into the install directory and run the .\install.ps1 script:

PS C:\certdog> cd install
PS C:\certdog\install> .\install.ps1

Note: If you see the message Do you want to run software from this untrusted publisher? type A to always run. The scripts are signed with a publicly trusted CA, but depending on your security settings, there may still be a requirement to recognise the signer

If your system does not have the Visual C++ Redistributable packages installed, this installer will begin. Complete this installation and when complete, return and re-start the .\install.ps1 script

If you do not have the .NET 4.8 Runtime installed, the installer will recognise this and end. Install the .NET 4.8 Runtime then restart the .\install.ps1 script

The installer will start and display some initial information. e.g.

Krestfield Certdog Setup Version 1.7

End User Agreement (EULA)
The EULA for this software can be obtained from the following location:
By continuing and installing the software you accept the terms of this license agreement

Type 'y' to accept and continue, any other key to reject:

Download and read the EULA and if happy to accept the agreement, type y to proceed with the install

Follow the instructions to install the system, noting the following:

  1. You will be prompted to enter details and passwords for several accounts, these are discussed in the Accounts and Passwords section below

  2. You will be asked what interface and port you wish the system to be available on and the current available IP Addresses (as configured on your system) will be listed

    For a production system you should have an IP Address available which will be targeted via a DNS entry. For an initial test system the local loopback address ( can be used and the port left at 443 (the default SSL port)

  3. When prompted with Do you wish to install the ADCS agent on this machine, choose y if you will be interfacing to a Microsoft CA (Active Directory Certificate Services). This component only operates on server based operating systems. It is not required if you will be using locally generated (internal to the certdog application) CAs

There are many customisations and deployment options that can be applied including the separation of services across multiple machines, hosting on other containers, using shared databases and hosting fully or partially in the cloud. Contact support for more details

3. Verify the Installation

Sometimes the Certdog service takes a while to initialise. In the first instance check the Services snapin and search for the following services and check they are running

  • Krestfield Certdog Service

  • Krestfield Certdog Database

If not, attempt to start manually

If the services are not starting, check the installation log files for any errors

  • installlog.out
  • installlog.txt

If no errors were shown during the installation these files should just contain audit information

From the PowerShell prompt, navigate to the ..\bin folder and type .\is-db-running.ps1:

PS C:\certdog\install> cd ..\bin
PS C:\certdog\bin> .\is-db-running.ps1
Database is running

The message Database is running should be seen

Then type, is-api-running.ps1

PS C:\certdog\bin> .\is-api-running.ps1
API is running

The message API is running should be seen

If either the database or API are not running, see the Troubleshooting guide here

Next, open a browser and navigate to https://[Your IP Address]/certdog

Where [Your IP Address] is the address chosen during the installation e.g.

You should see a warning such as:


This is because we have not yet configured a valid SSL certificate. For now, click Advanced then click Continue to (unsafe)

You should see the login screen:


Enter the username and password for the First Admin User that you provided during the installation and click Login

You should be logged in OK. The initial view will be Certificates, but at this stage there are none to show

A successful login indicates that the installation was completed OK

4. SSL Configuration

By default an a test SSL certificate protects the system using the default IP address

This certificate will not be trusted by your system. You will see warnings when accessing the application via browser and REST API calls may fail

For test purposes you may continue to use the provided SSL certificate. To enable trust double click the following certificate:

[Install Dir]\config\sslcerts\dbssl_root.cer


Click Install Certificate… and select Local Machine


Select Place all certificates in the following store and browse to Trusted Root Certification Authorities, click Next and then Finish

Finally, click Yes

If you now close the browser, re-open and navigate to the warnings should be gone

Note: This is a test certificate and should not be trusted in a production environment. You should still continue to create a valid SSL certificate as described here

Accounts and Passwords

During the installation you will be prompted for the following details:

  • The Database User Admin Account
    • This is the main database administrator account and is used by the installer to create the other initial database accounts required by the system
    • You will not normally need to use this account on a day-to-day basis but you must retain the details (username as displayed and the password you enter)
    • If you wish to manually configure the database later (for example if all user accounts were lost), these credentials will be required
  • First Admin User
    • This is the first user that will log into the system, as an administrator. This will normally be your account
    • As well as a username and password, you will be required to enter an email address. All certdog user accounts require an associated email address to which notifications from the system may be sent
  • Master Password
    • This account is used as the top level protection for other accounts. It is not stored in the clear on the system
    • You must enter this password when installing the Application Service
    • Once entered, it should not be required again for this system but MUST be stored securely. If you start the application manually (not via the windows service) or wish to host the application on another container (e.g. on a shared Tomcat service), this password will be required

Windows Services

Database Service

This service will be installed by the install script

This service is the database and appears in the services snapin as Krestfield Certdog Database

Application Service

This service will be installed by the install script but can also be installed manually by running the .msi installer separately. This .msi installer is located here:

[Install Folder]\install\bin\InstallCertdogService.msi

This service starts and stops the system

In the services snapin, this service is called Krestfield Certdog Service

AD Certificate Services Agent

This service interfaces with your Microsoft ADCS instance. More details on this service can be found here

In the services snapin, this service is called Krestfield Adcs Driver

Sample Installation Output

Krestfield Certdog Setup Version 1.7

End User Agreement (EULA)

The EULA for this software can be obtained from the following location:

By continuing and installing the software you accept the terms of this license agreement

Type 'y' to accept and continue, any other key to reject: y


This script will now install the Certdog system on this machine

Downloading java...Please wait (this may take several minutes)
Checking hash...
Hash verified OK
java downloaded OK
java unzipped OK
Registering location..
Java installation complete..

Downloading database...Please wait (this may take several minutes)
Checking hash...
Hash verified OK
database downloaded OK
database unzipped OK

Database User Admin Account Setup

This is the database administrator account
It will be used to create other database users and configure their access
Record this account's details as you may need it to manage user accounts in the future

The username for this account is: certmanadmin

You must provide a password
Note that the password for this account cannot contain '@' or ':' characters

Please enter the password for this account: ********
Please confirm the password for this account: ********

Configuring database...

The Krestfield Certdog Database service is starting.
The Krestfield Certdog Database service was started successfully.

Configuring authorisation and restarting...

The Krestfield Certdog Database service is stopping.
The Krestfield Certdog Database service was stopped successfully.

The Krestfield Certdog Database service is starting.
The Krestfield Certdog Database service was started successfully.

First Admin User Account Setup

This is the account for the first administrator

This user will be able to login to the UI (or API) as an administrator and create other users

Enter the username: krestfield
Enter the email address:
Please enter the password: ********
Please confirm the password: ********

Database and accounts have been configured

If there are any issues, check the log files installlog.out and installlog.txt for errors

You can re-run this script but should first reset the database by running reset-db.ps1

The interface that the application will listen on must now be set
For local testing the loopback ( interface can be used
If you want to access the UI and API from other machines, choose another interface/IP Address
Or select all ( to listen on all available interfaces

Available interfaces
  3. (Listen on all)

What interface do you wish the application to be available on (Enter 1 to 3): 2

What port do you wish the application to listen on (443):

Selected interface:

Updating configuration...
Configuration complete...

Installing Application Service

Installing the Certdog Service from C:\certdog\install\bin\InstallCertdogService.msi
Service installed OK

Starting Certdog Service

A Master Password is required to start this service the first time
Store this password securely as it may be needed if changes are made to the configuration

Please enter the master password: ********
Please confirm the master password: ********

Starting the service...

Service started OK

AD Certificate Services Agent

Do you wish to install the ADCS agent on this machine (y/n)?: y

Installing Adcs agent from C:\certdog\install\bin\AdcsDriverInstaller.msi
Services installed OK

Configure Adcs Service

Starting the service...

Service started OK
If the database URL changes, re-run this script

Checking Installation...
Database is running
API is running

Installation is complete
  1. If installing on Windows 10 and you require access to a Microsoft ADCS Certificate Authority the RSAT (Remote Server Administration Tools) for Windows 10 are also required