环境:
企业防火墙
问题:
调用时
w3 = Web3(Web3.HTTPProvider("https://ropsten.infura.io/v3/API_KEY"))
在 中web3.py
,该请求将被防火墙阻止
SSLError("Can't connect to HTTPS URL because the SSL module is not available.")
试图:
Web3(Web3.HTTPProvider("https://ropsten.infura.io/v3/API_KEY",
request_kwargs={'cert': "CERTIFICATE.pem"}))
这应该根据python请求文档解决问题。然而,这个问题仍然存在。
问题:
我的尝试有什么错误吗?有没有办法停用 SSL 证书?