Skip to content

Add constructor parameter to disable CA pinning - #27

Merged
jeffreyparker merged 1 commit into
masterfrom
disable_ca_pinning
Jul 20, 2026
Merged

Add constructor parameter to disable CA pinning#27
jeffreyparker merged 1 commit into
masterfrom
disable_ca_pinning

Conversation

@cisco-annikiti

Copy link
Copy Markdown
Contributor

Description

Add $enable_ca_pinning constructor parameter to allow disabling CA pinning. When disabled, the TLS library validates connections using the OS trust store instead of the pinned CA bundle. TLS verification (SSL_VERIFY_PEER and verify_hostname) is always enforced regardless of this setting.

Motivation and Context

Provides a configuration option to disable CA pinning for customers who cannot upgrade during a CA bundle transition.

How Has This Been Tested?

Added unit tests covering:

  • CA pinning is enabled by default
  • CA pinning can be disabled via constructor parameter
  • TLS verification is still enforced when CA pinning is disabled

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@cisco-annikiti
cisco-annikiti marked this pull request as ready for review July 16, 2026 13:31
@jeffreyparker
jeffreyparker merged commit bba630a into master Jul 20, 2026
2 checks passed
@jeffreyparker
jeffreyparker deleted the disable_ca_pinning branch July 20, 2026 14:57
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