rapid7 / nexpose-client

DEPRECATED: Rapid7 Nexpose API client library written in Ruby
https://www.rapid7.com/
BSD 3-Clause "New" or "Revised" License
150 stars 103 forks source link

Api call to Generate Scan Engine Shared Secret #310

Closed yahanvesh closed 6 years ago

yahanvesh commented 6 years ago

Is there a way to Generate Scan Engine Shared Secret through the nexpose client gem, i couldnt find any reference for this.

zyoutz-r7 commented 6 years ago

@yahanvesh It is possible to generate a shared secret with the use of Nexpose::ShareSecret as found in the documentation: http://www.rubydoc.info/gems/nexpose/Nexpose/SharedSecret

Something similar to: shared_secret = Nexpose::SharedSecret.new(nsc,'3600').key_string

Where nsc is your Nexpose Connection object. Hope that helps!