x5c provisioner from golang code #640
Replies: 2 comments
-
Hey @kirill-kostenetskyi, we have a golang client for the CA. The code is here: https://github.com/smallstep/certificates/blob/master/ca/client.go. The cli just uses this client under the hood. So, if you look at the code the cli is using to generate the x5c provisioner token you should just be able to either copy it, or depend on the cli code directly. https://github.com/smallstep/cli/blob/d66a620dd751f6ecb54dcbcc8987f1c606a2cde0/utils/cautils/token_flow.go#L86-L140 Let me know if that does / doesn't make sense. |
Beta Was this translation helpful? Give feedback.
-
@dopey thanks a lot! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Could somebody suggest please, is there is any way to make command like that from code:
step ca certificate --ca-url https://33.333.333.333:443 session account_2.crt account_2.key --provisioner=x5c@dev --x5c-cert=account.crt --x5c-key=account.key
With JWK provisioned we can do like that:
It seems like it's not possible to do that for
x5c
provisioner in the same way. Is there are any other solutions how to do that?Thanks for any advice
Beta Was this translation helpful? Give feedback.
All reactions