-
In the documentation for the container at https://hub.docker.com/r/smallstep/step-ca I do not understand the information in the quickstart section vs the manual installation. In the section "Initialize your PKI" in Quickstart there is a docker run command with which will keep the docker command in the foreground. What is the purpose of this foreground command? Where is the root ca stored? Should it not be run using -d instead of -it? In the section Bootstrap step clients in Quickstart, what is the text in the box with the two commands? Is that meant to be a bash shell script? Why the {}? What is the purpose of running those commands? Does that work on Windows? How does the information in the Manual installation section compare to the information in the Quickstart section? Which one should be used for what scenarios? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
This is an illustrative example of running the container. You can adapt it to your needs. You're right that usually you would run the CA "in the background" using a container orchestrator. The root CA (and other files) are stored in
The
The manual installation is more of a step by step instruction for initializing the CA when running in Docker. The quickstart is for a quick start, omitting some details and customization options, and doing it in a single command. The instructions for bootstrapping trust apply to both: these are not specific to initializing and running the CA in Docker; they apply to any deployment option. Both only show the surface of what's possible when running the CA, as there are ample of options for initializing a CA with different settings and signing chains. |
Beta Was this translation helpful? Give feedback.
-
Ok, now I understand better. I am running step-ca on a Synology NAS and I would like to be able to issue certificate on other devices on my network since I do not want to install step on it. When I run step ca certificate on the step-ca container, all works ok. When I try to run this command on a remote device where step is installed here is what I get: step ca certificate localhost s.crt s.key In the step-ca logs I get this error: time="2023-07-23T02:18:43Z" level=warning duration="720.048µs" duration-ns=720048 error="authority.Authorize: authority.authorizeSign: provisioner not found or invalid audience (https://synology-nas-host:9000/1.0/sign)" fields.time="2023-07-23T02:18:43Z" method=POST name=ca ott=(snip) path=/sign protocol=HTTP/2.0 referer= remote-address=x.x.x.x request-id=ciu8s0rpu3cg00bs7qng size=144 status=401 user-agent="Smallstep CLI/0.24.1 (windows/amd64)" user-id= I know that this is a provisioner issue but for the life of me, I read everything I could on this page and I cannot figure out 1) if this allowed and 2) how to do it. |
Beta Was this translation helpful? Give feedback.
-
Maybe the docker readme doc should explain what each sections are for and I would change the docker run -it to a docker run -d and tell users to check their logs for the important initialization information. |
Beta Was this translation helpful? Give feedback.
-
Also, a lot of service require the certificate that gets created to be combined with the intermediate CA so how can I get the intermediate CA especially in PEM format? |
Beta Was this translation helpful? Give feedback.
This is an illustrative example of running the container. You can adapt it to your needs. You're right that usually you would run the CA "in the background" using a container orchestrator.
The root CA (and other files) are stored in
/home/step
in the contai…