Skip to content

Add configurable TLS version and cipher suite support #194

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wissemnord
Copy link

Summary

This PR adds configurable TLS version and cipher suite support, allowing users to specify custom TLS settings for security
compliance.

Why this is needed

Many enterprise environments require specific TLS versions (e.g., TLS 1.3 only) and custom cipher suites to meet compliance requirements or security policies.
Currently, the SDK uses default curl TLS settings, which may not meet these stricter security standards.

Changes

  • Added setTlsVersion() and getTlsVersion() methods to Configuration class
  • Added setTlsCipherList() and getTlsCipherList() methods to Configuration class
  • Enhanced ApiClient to automatically apply TLS settings using appropriate curl options (CURLOPT_TLS13_CIPHERS for TLS 1.3, CURLOPT_SSL_CIPHER_LIST for older versions)
  • Maintains full backward compatibility with existing SSL configuration

This enables users to enforce specific TLS security requirements while maintaining the existing API structure.

@wissemnord wissemnord force-pushed the feature/configurable-tls-settings branch from a54a243 to b9e1461 Compare August 15, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant