Skip to content
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

[QUESTION] How to generate Shared Secret via RESTful API? #322

Closed
vorotech opened this issue Jul 24, 2018 · 2 comments
Closed

[QUESTION] How to generate Shared Secret via RESTful API? #322

vorotech opened this issue Jul 24, 2018 · 2 comments

Comments

@vorotech
Copy link

In order to pre-authorize Nexpose Scan Engine in AWS I need to generate Shared Secret.

With a nexpose client ruby gem it is possible to generate/revoke the shared secret (see also #310).

But I cannot find an alternative in RESTful API, and the only way to to generate via UI.

Is it available? Or can I continue using ruby gem to generate the secret?

@zyoutz-r7
Copy link
Contributor

When using the nexpose-client Ruby gem, you can call the following method to remove the shared secret after initially generating it:
https://www.rubydoc.info/github/rapid7/nexpose-client/Nexpose%2FSharedSecret:delete

As for the RESTful API, there is an enhancement request for the functionality to be added but it does not yet exist. You can either use the gem to accomplish this functionality, or it is also possible to interact with the endpoints yourself if another language is of interest:
https://github.com/rapid7/nexpose-client/blob/master/lib/nexpose/shared_secret.rb#L8

@vorotech
Copy link
Author

Thanks @zyoutz-r7

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