Skip to content

Conversation

@monitorjbl
Copy link

@monitorjbl monitorjbl commented Dec 21, 2024

Fixes #22. Adding option to disable SSL verification

Adding option to disable SSL verification
@monitorjbl monitorjbl changed the title Fix for #22 Adding option to disable SSL verification Dec 21, 2024
@nodje
Copy link

nodje commented Jun 13, 2025

This address a very basic missing feature in the api_client.
Every TN instance is deployed with HTTPS only and self-manage certificate if I'm not mistaken.

This MR should be either accepted or another way to be able to skip SSL cert verification should be implemented.

It's 6month old already, why not review it? @kmoore134
And document it @Mrt134

@nodje
Copy link

nodje commented Jun 13, 2025

ws:// is supported on default deployment
Still it'd be handy to be able to support WSS with self-signed.
I realize this MR is unfinished, as other verbs beyond call should also be supported.

Applying to `ping` and `subscribe` commands as well
@monitorjbl
Copy link
Author

monitorjbl commented Jun 15, 2025

Updated my PR to touch the other commands. I haven't seen much activity from the truenas folks on github, so I've just been maintaining my own local fork to work around this problem.

@heapoutofspace
Copy link

Would be nice to have this merged, as ws:// is no longer supported by TN when using API keys:

For increased security, HTTPS with SSL/TLS transport security is required for TrueNAS API authentication using API keys. TrueNAS automatically revokes any user-linked API keys passed as part of an authentication attempt via insecure (HTTP) transport.

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

Successfully merging this pull request may close these issues.

CLI has no option to disable SSL verification

3 participants