When using Python SDK, you can specify a protocol (HTTP or HTTPS) for a specific request to use, or set a global protocol for all requests to use.

Note The default protocol of a product takes precedence over the global protocol. By default, Resource Access Manager (RAM), Security Token Service (STS), and Key Management Service (KMS) use the HTTPS protocol, and cannot use HTTP protocol.

Add OpenSSL support

The HTTPS protocol support of Alibaba Cloud Python SDK is based on the OpenSSL support in Python. To use Python SDK to send HTTPS requests, add OpenSSL support for Python.

Run the python -c "import ssl" command to make sure the OpenSSL support is added.