【问题标题】:Running gunicorn with multiple HTTPS Certificates?使用多个 HTTPS 证书运行 gunicorn?
【发布时间】:2019-05-09 16:43:18
【问题描述】:

我正在使用以下命令在 HTTPS 上运行 gunicorn:

gunicorn --certfile=cert1.pem --keyfile=key1.pem --bind 0.0.0.0:443 app:app()

但是,我有两个证书,一个用于 www.site.com,另一个用于 site.com。我应该如何在 gunicorn 上同时支持他们?

【问题讨论】:

    标签: https ssl-certificate gunicorn


    【解决方案1】:

    您应该能够创建指向多个域的 SSL 证书。这样,您只需要引用一个证书文件和一个密钥文件,但它们都将包含多个域的信息。

    https://community.letsencrypt.org/t/host-multiple-domains-with-a-single-certificate/20917 类似于此答案的内容应该会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-05
      • 1970-01-01
      • 1970-01-01
      • 2019-06-19
      • 2021-06-22
      • 1970-01-01
      相关资源
      最近更新 更多