step-ca REST api documentation #604
-
I'm looking for more information on utilizing step-ca as a microservice behind a REST api. It appears REST is supported in the step-ca online mode according to this chart: However, when searching through nearly all of the docs I've found myself constantly hitting dead ends. I even checked the So I have a few questions.
https://gitter.im/smallstep/community?at=5d8402698521b34d91575237 There is a statement that the REST api is not documented. Is this still the case? Is this comment suggesting to use the step-cli in the same way I've suggested above as a workaround? I appreciate any insight that can be provided, I've implemented a nice proof of concept using step-cli and have to say I'm glad such a tool exists and am curious to learn more implementation details. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
step-ca uses a REST API using JSON for everything, so yes, you can use
What do you mean with
Yes, we currently do not have docs, but looking at the file ca/client.go you can what endpoints and how the requests and responses are. See for example the Sign method: Lines 565 to 592 in 35ede74 It does a POST request to In that SignResponse you're probably interested in the
I think it will make more sense to use a custom REST API to talk to |
Beta Was this translation helpful? Give feedback.
step-ca uses a REST API using JSON for everything, so yes, you can use
curl
or your own implementation to talk with step-ca.What do you mean with
step-crypto
? If you mean commands likestep crypto jwt sign ...
, well they don't have any REST interface, but the way we sign, JWT is quite standard, so you can always sign a JWT yourself.Yes, …