Skip to content

Command line signature #188

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

Closed
DiegoRam opened this issue Oct 25, 2017 · 1 comment
Closed

Command line signature #188

DiegoRam opened this issue Oct 25, 2017 · 1 comment

Comments

@DiegoRam
Copy link

I was trying to perform a successful POST request but I'm getting invalid signature. It's pretty confusing on the documentation how to sign and create the hash. There is more examples somewhere?

As far i can undertand there is a private default key defined on main.go file. But I I can get the publick key on client side to sign the field?

@facchinm
Copy link
Member

Hi @DiegoRam ,
the key defined in main.go is the public key we use to check if the commandline has been signed by us.
To modify it (and use your own key) you can simply modify config.ini (which lives in teh same directory of the agent executable) and add your own public key there.
Then, from the server, you should sign every command with your own private key (see #149 (comment) for further info)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants