Skip to content

Add --ca-cert, --insecure, and --timeout flags#31

Merged
Mydayyy merged 1 commit intoMydayyy:masterfrom
wseaton:feat/tls-options
Feb 24, 2026
Merged

Add --ca-cert, --insecure, and --timeout flags#31
Mydayyy merged 1 commit intoMydayyy:masterfrom
wseaton:feat/tls-options

Conversation

@wseaton
Copy link
Copy Markdown
Contributor

@wseaton wseaton commented Feb 23, 2026

Summary

  • Add --ca-cert flag to load a custom PEM CA certificate bundle for TLS verification (useful for internal/corporate CAs)
  • Add --insecure flag to skip TLS certificate validation
  • Add --timeout flag to configure connection timeout in seconds (default: 30)
  • Centralize reqwest::blocking::Client construction into a single build_client() method

Motivation

Corporate PrivateBin instances often use internal CAs that aren't in the default trust store. Without --ca-cert, connections to these instances time out silently because the TLS handshake fails.

@Mydayyy
Copy link
Copy Markdown
Owner

Mydayyy commented Feb 23, 2026

Greetings,

Thanks for your contribution! Greatly appreciated. Don't worry about the failed rustfmt pipeline, it appears that new rules were added. I will take care of that outside of this PR.

I'll proceed to merge this and release a new version as soon as I have time, either today or tomorrow.

Best Regards
Mydayyy

@Mydayyy Mydayyy merged commit 263cb51 into Mydayyy:master Feb 24, 2026
1 check failed
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.

2 participants