forked from TrueCloudLab/certificates
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:
parent
a0423a4539
commit
4e3a6e67f1
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue