BMCA Logo

Install BMCA

Clone the release into the configured source directory:

root@sally:~ # git clone git@github.com:NadimGhaznavi/bmca
root@sally:~ # cd /root/bmca

Confirm the required programs and backup directory:

root@sally:~/bmca # source conf/settings.cfg
root@sally:~/bmca # "$STEP_CLI_BIN" version
root@sally:~/bmca # "$STEP_CA_BIN" version
root@sally:~/bmca # test -d "$DEV_BACKUP_TARGET_DIR"

Install development on Sally:

root@sally:~/bmca # ./scripts/install.sh --environment dev
[SUCCESS] Installed bmca REPLACE_WITH_VERSION for dev. Initialize or restore the complete CA before enabling the service.

Verify the installation:

root@sally:~/bmca # test "$(cat /opt/bmca/conf/environment)" = dev
root@sally:~/bmca # systemctl cat step-ca.service
root@sally:~/bmca # systemctl is-enabled step-ca.service
disabled

Continue with Set Up CA for a new CA or Restore CA when rebuilding the host.

When reinstalling BMCA with an existing CA in /etc/step-ca and /var/lib/step-ca, the installer enables and starts step-ca.service automatically.

BMCA currently supports dev on Sally and prod on Paris. Use the matching environment in every command; scripts reject execution on the wrong host.