Add env vars for enabling Remote Management and ACME provisioner.

A `step-ca` instance created in a container can now be initialized
with Remote Management by setting `DOCKER_STEPCA_INIT_REMOTE_MANAGEMENT`.
An ACME provisioner with default settings can be created at initialization
by setting `DOCKER_STEPCA_INIT_ACME`.
This commit is contained in:
Herman Slatman 2022-12-07 22:00:39 -07:00
parent a0423a4539
commit 4e3a6e67f1
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F

View file

@ -49,6 +49,12 @@ function step_ca_init () {
if [ -n "${DOCKER_STEPCA_INIT_SSH}" ]; then
setup_args=("${setup_args[@]}" --ssh)
fi
if [ -n "${DOCKER_STEPCA_INIT_ACME}" ]; then
setup_args=("${setup_args[@]}" --acme)
fi
if [ -n "${DOCKER_STEPCA_INIT_REMOTE_MANAGEMENT}" ]; then
setup_args=("${setup_args[@]}" --remote-management)
fi
step ca init "${setup_args[@]}"
mv $STEPPATH/password $PWDPATH
}