# 使用测试 SSL 证书安装 Discourse

**URL:** https://meta.discourse.org/t/install-discourse-with-a-staging-test-ssl-certificate/121299
**Category:** Self-hosting
**Created:** [2019年六月25日 17:12 UTC](https://meta.discourse.org/t/install-discourse-with-a-staging-test-ssl-certificate/121299 "2019-06-25T17:12:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![UnivacTwo](https://avatars.discourse-cdn.com/v4/letter/u/df705f/32.png) [@UnivacTwo](https://meta.discourse.org/u/UnivacTwo)
#### Post date: [2019年六月25日 17:12 UTC](https://meta.discourse.org/t/install-discourse-with-a-staging-test-ssl-certificate/121299/1 "2019-06-25T17:12:34Z")

</div>

Let’s Encrypt 对同一域名每周可生成的证书数量有限制。不幸的是，我们已达到此限制，本周无法生成新证书。

我们已备份社区数据，并尝试从头开始重新安装 Discourse。但由于已达到限制，我们无法继续安装。请问是否可以通过在 acme.sh 中使用 `--staging` 参数来安装 Discourse？

我们的论坛目前处于停机状态，希望能尽快得到回复。

谢谢。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019年六月25日 19:05 UTC](https://meta.discourse.org/t/install-discourse-with-a-staging-test-ssl-certificate/121299/2 "2019-06-25T19:05:35Z")

</div>

Why did you re-install from scratch? Do you still have the `shared` folder from the old instance? If you copy over the letsencrypt and ssl folders you should be able to use those certificates. Mostly, you’d just rsync over `/var/discourse/shared` from the other server and rebuild. It should re-use the existing certificates.

If you do have access to those files and it’s an emergency that you want to throw money at, see [Redirecting…](https://www.literatecomputing.com/product/rebuild-your-droplet/). I should be at my desk for at least the next hour or so.

---

<div class="post-metadata">

### Author: ![UnivacTwo](https://avatars.discourse-cdn.com/v4/letter/u/df705f/32.png) [@UnivacTwo](https://meta.discourse.org/u/UnivacTwo)
#### Post date: [2019年九月4日 15:15 UTC](https://meta.discourse.org/t/install-discourse-with-a-staging-test-ssl-certificate/121299/3 "2019-09-04T15:15:31Z")

</div>

我重新安装了 Discourse，因为升级出了问题，但我有备份。我当时没意识到会耗尽 Let’s Encrypt 的 SSL 证书，不过我已经解决了这个问题。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年四月1日 03:02 UTC](https://meta.discourse.org/t/install-discourse-with-a-staging-test-ssl-certificate/121299/4 "2023-04-01T03:02:15Z")

</div>



---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [2023年四月1日 03:25 UTC](https://meta.discourse.org/t/install-discourse-with-a-staging-test-ssl-certificate/121299/5 "2023-04-01T03:25:32Z")

</div>


