************************** Dogtag Setup - User Guide ************************** Dogtag is the Open Source upstream community version of the Red Hat Certificate System, an enterprise certificate management system that has been deployed in some of the largest PKI deployments worldwide. RHCS is FIPS 140-2 and Common Criteria certified. The Dogtag Certificate Authority (CA) subsystem issues, renews and revokes many different kinds of certificates. It can be used as a private CA back-end to barbican, and interacts with barbican through the Dogtag CA plugin. The Dogtag KRA subsystem is used to securely store secrets after being encrypted by storage keys that are stored either in a software NSS database or in an HSM. It can serve as a secret store for barbican, and interacts with barbican core through the Dogtag KRA plugin. In this guide, we will provide instructions on how to set up a basic Dogtag instance containing a CA and a KRA, and how to configure barbican to use this instance for a secret store and a certificate plugin. Much more detail about Dogtag, its deployment options and its administration are available in the `RHCS documentation `_. **Note:** The code below is taken from the devstack Barbican-Dogtag gate job. You can extract this code by looking at the Dogtag functions in contrib/devstack/lib/barbican. Installing the Dogtag Packages ****************************** Dogtag packages are available in Fedora/RHEL/Centos and on Ubuntu/Debian distributions. This guide will include instructions applicable to Fedora/RHEL/Centos. If installing on a Fedora platform, use at least Fedora 21. To install the required packages: .. code-block:: bash yum install pki-ca pki-kra 389-ds-base Creating the Directory Server Instance for the Dogtag Internal DB ***************************************************************** The Dogtag CA and KRA subsystems use a 389 directory server as an internal database. Configure one as follows: .. code-block:: bash mkdir -p /etc/389-ds cat > /etc/389-ds/setup.inf <`_. .. code-block:: bash mkdir -p /etc/dogtag cat > /etc/dogtag/ca.cfg < /etc/dogtag/kra.cfg <