【发布时间】:2017-04-10 05:18:43
【问题描述】:
我有一个问题,我无法单独解决
我想做什么:
我想为我未来的项目编写一个 https (SSL) 网络服务器。
我做了什么:
没有,因为这个错误
问题描述:
为了测试 SSL,我从 python 文档中复制了 SSL 网络服务器代码。
我创建了一个证书和一个私钥,然后我运行我的程序,在输入我之前在私钥中设置的密码后出现以下错误:
context.load_cert_chain(certfile="cert.pem", keyfile="private.pem")
在为我的私钥输入密码后,这会引发:OSError: [Errno 22] Invalid argument
【问题讨论】:
标签: python-3.x sockets ssl webserver pyopenssl