Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 604 Bytes

7-Https-EN.md

File metadata and controls

25 lines (21 loc) · 604 Bytes

HTTPS Configurations

  1. Ignore certificate
from aliyunsdkcore.client import AcsClient

client = AcsClient(
    '<access_key_id>', # AccessKey ID
    '<access_secret>', # Access Key Secret
    '<region_id>', # Region ID
    verify=False  # Ignore verifying the SSL certificate
)
  1. Specify CA certificate
from aliyunsdkcore.client import AcsClient

client = AcsClient(
    '<access_key_id>', # AccessKey ID
    '<access_secret>', # Access Key Secret
    '<region_id>', # Region ID
    verify='./cacert.pem'  # Path with certificates of trusted CA
)