【问题标题】:Setup Gunicorn with let's encrypt cert使用 let's encrypt 证书设置 Gunicorn
【发布时间】:2016-06-09 05:37:21
【问题描述】:

为了保护我的网站,我使用 Let's encyprt certbot 生成 privkey.pem, cert.pem, chain.pem, and fullchain.pem

当我从桌面 chrome 或 firefox 连接我的网站时,似乎没问题。但是当我连接移动浏览器如chrome-android时,它会阻止连接并显示untrusted certificate authority

我正在使用 Django==1.9.7 和 gunicorn==19.6.0。这是我的 gunicorn 配置文件:

bind = '0.0.0.0:443'
workers = 4
worker_class = 'gevent'
worker_connections = 1000
keepalive = 5

keyfile = 'privkey.pem'
certfile = 'cert.pem'

我错过了什么?

【问题讨论】:

    标签: ssl gunicorn lets-encrypt


    【解决方案1】:

    我自己解决了这个问题。问题是由于gunicorn配置中缺少keychain文件造成的。

    所以,目前我的配置文件是:

    bind = '0.0.0.0:443'
    workers = 4
    worker_class = 'gevent'
    worker_connections = 1000
    keepalive = 5
    
    keyfile = 'privkey.pem'
    certfile = 'cert.pem'
    ca_certs = 'chain.pem'
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-20
      • 2020-04-25
      • 2022-08-10
      • 2018-09-16
      • 1970-01-01
      • 2021-03-04
      相关资源
      最近更新 更多