- 积分
- 350
- 金钱
- 316
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 350
- 金钱
- 316
- HASS币
- 0
|
发表于 2021-3-3 16:18:29
|
显示全部楼层
本帖最后由 passersky 于 2021-3-3 16:29 编辑
搞掂了,证书路径错了。
~~~~~~
不知道是不是平台不行?运行不起来。
* Serving Flask app "main" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
Traceback (most recent call last):
File "main.py", line 209, in <module>
"/root/ssl.pem",
File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 990, in run
run_simple(host, port, self, **options)
File "/usr/local/lib/python3.7/site-packages/werkzeug/serving.py", line 1052, in run_simple
inner()
File "/usr/local/lib/python3.7/site-packages/werkzeug/serving.py", line 1005, in inner
fd=fd,
File "/usr/local/lib/python3.7/site-packages/werkzeug/serving.py", line 848, in make_server
host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
File "/usr/local/lib/python3.7/site-packages/werkzeug/serving.py", line 766, in __init__
self.socket = ssl_context.wrap_socket(sock, server_side=True)
File "/usr/local/lib/python3.7/site-packages/werkzeug/serving.py", line 661, in wrap_socket
**kwargs
File "/usr/local/lib/python3.7/ssl.py", line 1166, in wrap_socket
ciphers=ciphers)
File "/usr/local/lib/python3.7/ssl.py", line 759, in __init__
self._context.load_cert_chain(certfile, keyfile)
FileNotFoundError: [Errno 2] No such file or directory |
|