diff --git a/step-ca/certificate-authority-server-production.mdx b/step-ca/certificate-authority-server-production.mdx index 647b7ec2..919c4d6f 100644 --- a/step-ca/certificate-authority-server-production.mdx +++ b/step-ca/certificate-authority-server-production.mdx @@ -307,8 +307,8 @@ Note: _This section requires a Linux OS running `systemd` version 245 or greater The service user will only be used by `systemd` to manage the CA. Run: - - {`$ sudo useradd --system --home /etc/step-ca --shell /bin/false step`} + + {`$ sudo useradd --user-group --system --home /etc/step-ca --shell /bin/false step`} If your CA will bind to port 443, the `step-ca` binary will need to be @@ -335,6 +335,11 @@ Note: _This section requires a Linux OS running `systemd` version 245 or greater {`$ sudo chown -R step:step /etc/step-ca`} + Modify your `ca.conf` file to point to the new database location: + + {`cat <<< $(jq '.db.dataSource = "/etc/step-ca/db"' /etc/step-ca/config/ca.json) > /etc/step-ca/config/ca.json`} + + 3. Create a `systemd` unit file. ```shell-session