简体   繁体   English

Heroku Django 错误:SSL 证书已过期

[英]Heroku Django error: SSL certificate has expired

How do I make my free Heroku site work?如何使我的免费 Heroku 站点正常工作? I did not change it from the time it was working to when it stopped working.从它工作到它停止工作时,我没有改变它。

site code网站代码

When I opened my site, I got an "Application Error" page.当我打开我的网站时,我得到一个“应用程序错误”页面。 I followed its instructions.我听从了它的指示。 I ran the Heroku CLI command "heroku logs --tail" and got an error.我运行了 Heroku CLI 命令“heroku logs --tail”并出现错误。 I then ran "heroku logs --tail --app moresomervillehappinessapp".然后我运行“heroku logs --tail --app moresomervillehappinessapp”。

Here are the last logs:这是最后的日志:

2020-04-06T20:49:47.204222+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/urllib/request.py", line 1320, in do_open
2020-04-06T20:49:47.204222+00:00 app[web.1]: raise URLError(err)
2020-04-06T20:49:47.204228+00:00 app[web.1]: urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1108)>

According to Heroku, I can use the "*.herokuapp.com" certificate for SSL.根据 Heroku,我可以为 SSL 使用“*.herokuapp.com”证书。 Should I try to get rid of the SSL certificate?我应该尝试摆脱 SSL 证书吗? I care a little bit about SEO, but not the security of user data.我有点关心 SEO,但不关心用户数据的安全性。

Software I used: Django 3.0.2, Python 3.8我使用的软件:Django 3.0.2、Python 3.8

My site used an URL to read a CSV from a university site.我的网站使用 URL 从大学网站读取 CSV。 The URL had "https:" in it. URL 中有“https:”。 Now it has "http:".现在它有“http:”。 I put the CSV on Github and changed the URL my site reads.我将 CSV 放在 Github 上,并更改了我的网站读取的 URL。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 证书验证失败:证书已过期 (_ssl.c:1108) - Certifacte verify failed: certificate has expired (_ssl.c:1108) ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:证书已过期 (_ssl.c:997) - ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997) pymongo [SSL: CERTIFICATE_VERIFY_FAILED]: Mongo Atlas 上的证书已过期 - pymongo [SSL: CERTIFICATE_VERIFY_FAILED]: certificate has expired on Mongo Atlas 如何解决“证书已过期”错误代码 - how do I get around a 'certificate has expired' error code SleekXMPP:“证书已过期。” - SleekXMPP: “Certificate has expired.” 如何处理 TensorFlow 中的错误“证书验证失败:证书已过期”? - How can I handle the error "certificate verify failed: certificate has expired" in TensorFlow? 带有 SSL 证书的 Django 请求 - Django Request with a SSL Certificate 抓取时如何解决此错误? 它说“证书已过期” - How do I fix this error while scraping? It says "certificate has expired" Django paypalrestsdk错误-OpenSSL.SSL.Error:[(“ SSL例程”,“ tls_process_server_certificate”,“证书验证失败”)) - Django paypalrestsdk error - OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')] 如何获取 SSL 证书以查看它是否已过期 - How to fetch the SSL certificate to see whether it's expired or not
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM