Skip to content

Conversation

@xiangyan99
Copy link
Member

Add example to showcase how to use truststore to leverage local cert store.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new sample file demonstrating how to use the truststore library with Azure SDK for Python to leverage the operating system's certificate store for TLS/SSL verification. The sample covers both synchronous (using requests) and asynchronous (using aiohttp) usage patterns with Azure Blob Storage as the example service.

Key changes:

  • Adds example_truststore.py showing truststore initialization before Azure SDK imports
  • Demonstrates proper resource cleanup for both sync and async Azure SDK clients
  • Includes working examples for both synchronous and asynchronous Azure SDK usage with system certificates

Copy link
Member

@pvaneck pvaneck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xiangyan99 xiangyan99 merged commit a69a3c2 into main Dec 10, 2025
54 checks passed
@xiangyan99 xiangyan99 deleted the example_truststore branch December 10, 2025 20:20
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.

4 participants