tencentcloud-cli icon indicating copy to clipboard operation
tencentcloud-cli copied to clipboard

无法切换HTTP模式

Open neepher opened this issue 1 year ago • 2 comments

使用tccli连接私有云,tccli默认使用HTTPS模式,并开启了SSL证书验证,导致请求出现SsLEror(SSLError(1, '[SSL: CERTIFICATE_VERIFY_ERROR,又什么方法可以改用HTTP模式发起请求或者关闭HTTPS的证书校验?

neepher avatar Jul 14 '23 00:07 neepher

修改C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\tencentcloud\common\profile 下的 http_profile.py self.protocol = protocol or "https" http改为http即可。

FengZh61 avatar Aug 14 '23 03:08 FengZh61

修改C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Lib\site-packages\tencentcloud\common\profile 下的 http_profile.py self.protocol = protocol or "https" http改为http即可。

不过私有云有的产品的接口版本tccli不支持,我之前想用过tccli,发现云监控的版本不支持,不知道是不是我们这边的产品版本太低。

FengZh61 avatar Aug 14 '23 03:08 FengZh61