OpenSSL 麻烦 python
OpenSSL trouble python
我正在尝试按照 this tutorial 进行一些 MDM 测试设置。
我已设置 server 并在 Ubuntu 上工作,但是当我尝试在 windows 上 运行 它时,出现以下错误:
代码:
if __name__ == "__main__":
print "Starting Server"
app = web.application(urls, globals())
app.internalerror = web.debugerror
try:
app.run()
except Exception, e:
print "{0}".format(e)
sys.exit(0)
else:
# app.run() seems to use server.py as a module
# Placing these in main causes them not to run
# Placing these above main causes them to run twice
mdm_commands = setup_commands()
read_devices()
错误:
Starting Server
https://0.0.0.0:8080/
[('system library', 'fopen', 'No such file or directory'), ('BIO routines', 'FIL
E_CTRL', 'system lib'), ('SSL routines', 'SSL_CTX_use_certificate_file', 'system
lib')]
有人知道是什么原因造成的吗?
原来问题是项目目录中缺少 Server.crt
文件。
我正在尝试按照 this tutorial 进行一些 MDM 测试设置。
我已设置 server 并在 Ubuntu 上工作,但是当我尝试在 windows 上 运行 它时,出现以下错误:
代码:
if __name__ == "__main__":
print "Starting Server"
app = web.application(urls, globals())
app.internalerror = web.debugerror
try:
app.run()
except Exception, e:
print "{0}".format(e)
sys.exit(0)
else:
# app.run() seems to use server.py as a module
# Placing these in main causes them not to run
# Placing these above main causes them to run twice
mdm_commands = setup_commands()
read_devices()
错误:
Starting Server
https://0.0.0.0:8080/
[('system library', 'fopen', 'No such file or directory'), ('BIO routines', 'FIL
E_CTRL', 'system lib'), ('SSL routines', 'SSL_CTX_use_certificate_file', 'system
lib')]
有人知道是什么原因造成的吗?
原来问题是项目目录中缺少 Server.crt
文件。