程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了包含 SSL 密钥和证书后出现 Jupyterhub 代理错误大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决包含 SSL 密钥和证书后出现 Jupyterhub 代理错误?

开发过程中遇到包含 SSL 密钥和证书后出现 Jupyterhub 代理错误的问题如何解决?下面主要结合日常开发的经验,给出你关于包含 SSL 密钥和证书后出现 Jupyterhub 代理错误的解决方法建议,希望对你解决包含 SSL 密钥和证书后出现 Jupyterhub 代理错误有所启发或帮助;

我在我的服务器上安装了 jupyterhub,这些天我在没有 SSL 证书的情况下登录,一切正常。现在我有了 SSL 证书 (.cer) 并且我已经从中生成了密钥并在 c.JupyterHub.ssl_cert = '/opt/mycert.cer'c.JupyterHub.ssl_key='/opt/mykey.pem'。但是当我开始 jupyterhub 时,我得到以下错误。

[I 2021-03-23 09:50:15.434 JupyterHub proxy:646] StarTing proxy @ http://10.203.6.43:8080/
_tls_common.Js:113
      c.context.setCert(cert);
                ^

Error: error:0906D06C:PEM r@R_262_9981@nes:PEM_read_bio:no start line
    at Object.createSecureContext (_tls_common.Js:113:17)
    at Server (_tls_wrap.Js:868:27)
    at new Server (https.Js:62:14)
    at Object.createServer (https.Js:84:10)
    at new ConfigurableProxy (/opt/anaconda3/lib/node_modules/configurable-http-proxy/lib/configproxy.Js:223:32)
    at Object.<anonymous> (/opt/anaconda3/lib/node_modules/configurable-http-proxy/bin/configurable-http-proxy:333:13)
    at Module._compile (internal/modules/cJs/loader.Js:688:30)
    at Object.Module._extensions..Js (internal/modules/cJs/loader.Js:699:10)
    at Module.load (internal/modules/cJs/loader.Js:598:32)
    at trymoduleLoad (internal/modules/cJs/loader.Js:537:12)
[C 2021-03-23 09:50:16.537 JupyterHub app:2517] Failed to start proxy
    TraceBACk (most recent call last):
      file "/opt/anaconda3/lib/python3.8/site-packages/jupyterhub/app.py",line 2515,in start
        await self.proxy.start()
      file "/opt/anaconda3/lib/python3.8/site-packages/jupyterhub/proxy.py",line 673,in start
        _check_process()
      file "/opt/anaconda3/lib/python3.8/site-packages/jupyterhub/proxy.py",line 669,in _check_process
        raise e from None
    RuntimeError: Proxy Failed to start with exit code 1
configurable-http-proxy --ip 10.203.6.43 --port 8080
10:05:21.706 [ConfigProxy] warn: REST API is not authenticated.
10:05:21.713 [ConfigProxy] info: Proxying http://10.203.6.43:8080 to (no default)
10:05:21.713 [ConfigProxy] info: Proxy API at http://localhost:8081/API/routes

我使用以下命令生成了密钥

openssl x509 -inform der -in /opt/mycert.cer -pubkey -noout > /opt/mykey.pem

在网上看了类似的问题后,我似乎还是没有克服它。有人可以帮助我解决这个错误。

解决方法

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

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

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

大佬总结

以上是大佬教程为你收集整理的包含 SSL 密钥和证书后出现 Jupyterhub 代理错误全部内容,希望文章能够帮你解决包含 SSL 密钥和证书后出现 Jupyterhub 代理错误所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。