Skip to content

Step-CA with Docker-Compose #880

Answered by maraino
se316 asked this question in Q&A
Mar 29, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

@se316 If you look at the entrypoint.sh used by step-ca Dockerfile, you can define a some environment variables, DOCKER_STEPCA_INIT_NAME, DOCKER_STEPCA_INIT_DNS_NAMES and optionally DOCKER_STEPCA_INIT_PROVISIONER_NAME, DOCKER_STEPCA_INIT_PASSWORD and DOCKER_STEPCA_INIT_SSH to automatically initialize step-ca. You can define the ones you need in docker-compose.yaml and if the PKI hasn't been initialized, it will create a new one.

I don't think we have an example for your case, but we have an example here that uses a previously initialized PKI.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by se316
Comment options

You must be logged in to vote
1 reply
@maraino
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants