gpt4 book ai didi

In Python flask what does ssl.SSLError: [SSL] PEM lib (_ssl.c:3563) mean?(在Python烧瓶中做ssl的是什么。SSLError:[SSL]PEM lib(_SSL.c:3563)mean?)

转载 作者:bug小助手 更新时间:2023-10-22 16:11:32 28 4
gpt4 key购买 nike



import ssl
context = ssl.create_default_context()

context.load_cert_chain('cert.pem', 'key.pem')

Both the cert and key files are matching as checked in another website
But I am getting :
context.load_cert_chain('cert.pem', 'key.pem') ssl.SSLError: [SSL] PEM lib (_ssl.c:3563)

证书和密钥文件在另一个网站上都是匹配的,但我得到了:context.load_cert_chain('cert.pem','key.pem')ssl。SSLError:[SSL]PEM lib(_SSL.c:3563)


Running a Python Flask app using ssl certificates given by the domain keepers godaddy.

I am expected to run the app in https.

使用域管理员godaddy提供的ssl证书运行Python-Flask应用程序。我应该在https中运行该应用程序。


更多回答

This depends on the Python version used. stackoverflow.com/questions/30109449/… has a similar problem where the private key was not correct but had _ssl.c:2532 as the error row in Python 3.6

这取决于使用的Python版本。stackoverflow.com/questions/30109449/…也有类似的问题,其中私钥不正确,但Python 3.6中的错误行为_ssl.c:2532

优秀答案推荐
更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com