Comments (1)
pam_client_cert && pam_private_key are files, and need to be uploaded by the files API.
https://pytenable.readthedocs.io/en/stable/api/sc/files.html#tenable.sc.files.FileAPI.upload
Pass the returned filename into those parameters and it should work.
As a side note, I would recommend a few little things that may help you with your script.
- Don't use the login/logout method for api keys, just pass all the parameters at instantiation. The use of login is mostly there for backwards compatibility at this point.
- There isn't any need to pull TSC_URL, TSC_ACCESS_KEY, or TSC_SECRET_KEY. The library will pull those automatically for you.
- You can ask for the typeFields field in the credential list API, which would mean you wouldn't need to hit the details API for every cred.
- You could also dramatically reduce your main function if you embraced something like typer or click for the CLI management. Both are awesome libraries, I have a heavy preference to typer myself.
from pytenable.
Related Issues (20)
- Issue with plugin upload functionality HOT 14
- sc.scan_instances.import_scan limited to 2GB HOT 1
- Asset Tag "Legacy Filter" Issues HOT 4
- Adopt Export UUID on 409 responses
- TVM Activity Log Pagination
- Let pyTenable retry requests when the API responds with retriable status codes HOT 2
- There is no "scan.progress" endpoint
- Test Request - Integrations testing for the SC 6.4.0 release readiness
- Question: tio.workbenches.vuln_assets( ) How can I apply nested filters with multiple AND and OR conditions?
- tio.was.export forget endpoint in documentation ? HOT 2
- Version 1.4.2 package has incorrect dependency configuration in setup.py HOT 15
- Removal of v1.4.2 as it has a broken setup.cfg, causing errors due to this version being fetched during dependency resolution by pip v24.0 HOT 1
- Policy Preference Update Only Accept Strings Values HOT 1
- Implementation Request for PCI ASV API
- Release 1.5.0 has caused issues with working code from 1.4.22 when updating credentials with SSH key using sc.credentials.edit HOT 2
- JSONDecodeError issue on tenable.io.TenableIO.plugins.families HOT 3
- Bug with the parameter "last_modified" in the method "list" of tenable.io scans.py HOT 1
- After using a object data, it is empty HOT 1
- Bug with the parameter "severity_modification_type" for Vulnerability Export from Tenable VM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytenable.