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

Site.save fails for sites with PEM Format Key #235

Open
tmsteen opened this issue Jun 2, 2016 · 2 comments
Open

Site.save fails for sites with PEM Format Key #235

tmsteen opened this issue Jun 2, 2016 · 2 comments

Comments

@tmsteen
Copy link

tmsteen commented Jun 2, 2016

This happens when making any changes to a site and then attempting to save the site using Site.save(nsc).

Error Output:

Nexpose::APIError: NexposeAPI: POST request to /api/2.1/site_configurations/ failed. response body: { 
"errors" : [ "PEM-format Private Key must be specified for this action." ] 
} 
from /var/lib/gems/2.3.0/gems/nexpose-3.3.1/lib/nexpose/ajax.rb:166:in `request' 
from /var/lib/gems/2.3.0/gems/nexpose-3.3.1/lib/nexpose/ajax.rb:65:in `post' 
from /var/lib/gems/2.3.0/gems/nexpose-3.3.1/lib/nexpose/site.rb:536:in `save' 
from copy_site.rb:38:in `<top (required)>' 
from (irb):6:in `load' 
from (irb):6 
from /usr/bin/irb:11:in `<main>

Additional Troubleshooting:
The PUT URI is different for the API and GUI. We used wireshark and stunnel to SSL MITM the traffic.

  1. API

"PUT /api/2.1/site_configurations/1" returns a HTTP 405 Method not allowed

  1. GUI

"PUT /data/scan/config" is ok

@gschneider-r7
Copy link
Contributor

This has been identified as a defect in the Nexpose 2.1 API itself.

@b4ldr
Copy link

b4ldr commented May 13, 2024

This has been identified as a defect in the Nexpose 2.1 API itself.

Is there an upstream bug i am still hitting this with v7.3.0

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

No branches or pull requests

3 participants