【问题标题】:Automatic lets encrypt SSL certificate for wildcard subdomain自动允许加密通配符子域的 SSL 证书
【发布时间】:2019-02-17 15:49:56
【问题描述】:

我在我的 Centos VPS 机器和 Cloudflare 上使用 ISPConfig 作为主机面板进行 DNS 管理。

我已将以下重写规则添加到我的虚拟主机中,它会自动将子文件夹重新路由到子域。

代码:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain.com
RewriteCond %{HTTP_HOST} ^(www\.)?(([^\.]+)\.){1}domain..com$
RewriteCond /var/www/backoffice.ge/web/build/%3 -d

在 http (*80) 上一切正常,但我在 https (*443) 上有证书问题。根据我的解决方法,问题出在只为主域(domain.com)生成的 Let's Encrypt 证书中。

如果可能,我想创建通用通配符证书,它将自动适用于所有子域,或者通过 PHP 即时创建子域/目录证书。

我发现了一些关于 Certbot 的文章。但是,不知道如何使它适用于上述设置。

【问题讨论】:

    标签: apache mod-rewrite cloudflare lets-encrypt ispconfig


    【解决方案1】:

    找到的解决方案,与我的 ispconfig 设置完美配合。我已生成通配符证书,所有子域都有 ssl。

    https://bjornjohansen.no/wildcard-certificate-letsencrypt-cloudflare

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-17
      • 1970-01-01
      • 1970-01-01
      • 2012-06-14
      • 2022-06-23
      • 2017-04-30
      • 2013-05-20
      • 1970-01-01
      相关资源
      最近更新 更多