2016-06-09 81 views
1

爲了確保我的網站,我用讓我們encyprt certbot產生privkey.pem, cert.pem, chain.pem, and fullchain.pem設置Gunicorn與咱們加密證書

當我連接我的網站從桌面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' 

我錯過了什麼?

回答

2

我自己解決了這個問題。這個問題是由於在gunicorn配置中丟失鑰匙鏈文件造成的。

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

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'