Skip to content

v0.2.5

Compare
Choose a tag to compare
@devmiek devmiek released this 02 Jun 09:20
· 2 commits to main since this release
f098a87

The client now support setting an SSL context. If the trusted CA root certificate list provided by the global SSL context does not exist, the built-in one is used by default. The built-in trusted CA root certificate is provided by the common SSL context.

For example, the CPython runtime on macOS does not use the system trusted CA root certificate list, nor does it have it built in. In this case, the common SSL context will automatically replace the global SSL context and provide a built-in list of trusted CA root certificates. This solves the problem of not being able to verify the validity of the server SSL certificate in this case.

New APIs

  • tencent.cloud.core.client.get_common_ssl_context()
  • tencent.cloud.core.client.set_common_ssl_context(...)
  • tencent.cloud.core.client.has_common_ssl_context()
  • tencent.cloud.core.client.need_common_ssl_context()
  • tencent.cloud.core.client.BaseClient.set_ssl_context(...)
  • tencent.cloud.core.client.BaseClient.ssl_context

For more information, please read the API signature and comment.

Changed packages

  • tencent-cloud-sdk-common
  • tencent-cloud-sdk-core