certfile和keyfile FileNotFoundError:[Errno 2]没有这样的文件或目录

问题描述

我创建了一个flask应用程序,该应用程序中也带有破折号,并且我正在Windows 64位上工作。 我已经安装了pyopenssl并在运行以下代码

app.run_server(debug=False,ssl_context=('cert.pem','key.pem'))

运行代码后,出现以下错误

  File "~\Anaconda3\lib\ssl.py",line 1402,in wrap_socket
    context.load_cert_chain(certfile,keyfile)

FileNotFoundError: [Errno 2] No such file or directory

请帮助解决此问题,因为我是python的新手,请详细说明...

先感谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)