-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: example of generating token & json for authsign api #460
Comments
ping @kisom @anniephan |
Ah, yes, updating the docs would be a good idea. I'll put in a proposal for that. This is a test for the Authsign API endpoint. Basically, using authsign involves combining an auth key (randomly generated -- I used The auth key is also specified with the remote signer in cfssl serve's config file (example here). |
I've taken @anniephan 's steps and attempted to convert them so that I can use them with our nodejs application:
It took a bit of time to understand the Go script but it worked and I got a certificate, I'll be handing it onto the Devs to make it "Production Grade", but I hope it helps people for an example. Thanks for making this project Open Source, its a great piece of work. |
@kisom so |
Trying to find a good reference in regards using the authsign endpoint. Have tried posting the example json testdata body to endpoint, but have been getting I would assume that the testdata (authrequest.json) should be working with the key in (auth_test.go) and at least it shouldn't fail at the sign handler stage. Does anyone have a clue on what the issue might be? The links that @anniephan has kindly provided are now both broken. If there's another reference that I could take a look at, that'd be helpful too. |
Facing the same issue as @aclairekeum above. |
You need to:
The json parser breaks when it hits "\n" hence the above error. |
Would it be possible to add an example of generating json for an authsign request? Specifically an example of a key, the json for certificate_request, the json containing the token and request.
That would make it a lot easier for people to write perl/ruby/python scripts to generate a CSR on a host and then get it authsigned by cfssl.
The text was updated successfully, but these errors were encountered: