[英]Box Python API - How to set SSL Certificate check as false?
Relatively new to python and box.对 python 和 box 来说相对较新。 Trying to connect to Box python API using below code:
尝试使用以下代码连接到 Box python API:
from boxsdk import Client, OAuth2
oauth = OAuth2(
client_id='YOUR_CLIENT_ID',
client_secret='YOUR_CLIENT_SECRET',
access_token='ACCESS_TOKEN',
refresh_token='REFRESH_TOKEN',
)
client = Client(auth)
user = client.user().get()
print('User ID is {0}'.format(user.id))
And getting following error:并收到以下错误:
OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')] OpenSSL.SSL.Error: [('SSL 例程', 'tls_process_server_certificate', '证书验证失败')]
How can I set cert verify to false?如何将 cert verify 设置为 false? whats the process to store SSL certs?
什么是存储 SSL 证书的过程? Using windows, python 3.8
使用 Windows,python 3.8
Thanks!谢谢!
Box doesn't actively monitor/provide support via StackOverflow for the Box SDKs. Box 不会通过 StackOverflow 为 Box SDK 主动监控/提供支持。 If you're still having issues, you may want to create a GitHub issue here: https://github.com/box/box-python-sdk/issues/new
如果您仍有问题,您可能需要在此处创建 GitHub 问题: https : //github.com/box/box-python-sdk/issues/new
Be sure to checkout the README doc and the Usage docs , first.请务必先查看README 文档和Usage docs 。 Also, the demo app has an authentication example that may help you.
此外,演示应用程序有一个 身份验证示例可以帮助您。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.