# OAuth2 和 Letsencrypt 冲突

**URL:** <https://meta.discourse.org/t/oauth2-and-letsencrypt-clash/394536>\
**Category:** Support\
**Tags:** oauth2, letsencrypt\
**Created:** [2026年一月28日 13:07 UTC](https://meta.discourse.org/t/oauth2-and-letsencrypt-clash/394536 "2026-01-28T13:07:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Ostap1974](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ostap1974/32/493443_2.png) [@Ostap1974](https://meta.discourse.org/u/Ostap1974)\
**Post date:** [2026年一月28日 13:07 UTC](https://meta.discourse.org/t/oauth2-and-letsencrypt-clash/394536/1 "2026-01-28T13:07:01Z")

</div>

我有一个在 Ubuntu 上运行的 Discourse Docker 容器（从 DO 模板创建），启用了“自定义 OAuth2”。它运行得非常好，除了它无法更新其 Letsencrypt 证书。

在追踪问题时，我从日志中看到更新脚本由 Cron 执行，但由于 Discourse 将挑战回调重定向到 OAuth2 IDP，因此挑战被拒绝。

这是（已编辑的）日志：  
[Wed Jan 28 12:40:32 PM UTC 2026] Renewing: ‘community.site’  
[Wed Jan 28 12:40:32 PM UTC 2026] Renewing using Le\_API=[https://acme-v02.api.letsencrypt.org/directory](https://acme-v02.api.letsencrypt.org/directory)  
[Wed Jan 28 12:40:33 PM UTC 2026] Using CA: [https://acme-v02.api.letsencrypt.org/directory](https://acme-v02.api.letsencrypt.org/directory)  
[Wed Jan 28 12:40:33 PM UTC 2026] Single domain=‘community.site’  
[Wed Jan 28 12:40:35 PM UTC 2026] Getting webroot for domain=‘community.site’  
[Wed Jan 28 12:40:35 PM UTC 2026] Verifying: community.site  
[Wed Jan 28 12:40:36 PM UTC 2026] Pending. The CA is processing your order, please wait. (1/30)  
[Wed Jan 28 12:40:40 PM UTC 2026] community.site: Invalid status. Verification error details: 1.2.3.4: Invalid response from [https://oauth.site/authorize?client\_id=xxx](https://oauth.site/authorize?client_id=xxx)  
[Wed Jan 28 12:40:40 PM UTC 2026] Please check log file for more details: /shared/letsencrypt/acme.sh.log  
[Wed Jan 28 12:40:40 PM UTC 2026] Error renewing community.site.

重建应用可以解决接下来的 3 个月的问题，但我希望彻底解决它。有什么建议吗？

提前感谢。

---

_[View the full topic](https://meta.discourse.org/t/oauth2-and-letsencrypt-clash/394536)._
