- 忽略证书
from aliyunsdkcore.client import AcsClient
client = AcsClient(
'<access_key_id>', # AccessKey ID
'<access_secret>', # Access Key Secret
'<region_id>', # 地域ID
verify=False # 忽略对 SSL 证书的验证
)
- 指定CA证书文件
from aliyunsdkcore.client import AcsClient
client = AcsClient(
'<access_key_id>', # AccessKey ID
'<access_secret>', # Access Key Secret
'<region_id>', # 地域ID
verify='./cacert.pem' # 证书路径
)