我希望我的网站位于https://
我阅读了一些内容,并遵循了一些说明,比如在settings.py中添加以下内容:
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_SSL_REDIRECT = True
但似乎不起作用
当我将https://放在我的站点地址前时,我会得到一个错误:
SSL Not Enabled
This site is not enabled for SSL. Please follow this link to visit the site without SSL.
如何将所有http请求
SSL2Buy为我提供了三个文件:mysite.ssl2.crt、mysite.ssl2.intermediate和mysite.ssl2.key。我不相信中间文件算作证书链,但我不知道如何找到证书链。有人知道吗?
我从亚马逊网络服务得到的错误是这样的(当我试图将中间文件作为证书链时):Unable to validate certificate chain. The certificate chain must start with the immediate signing certificate, followed by any intermediaries in order. The