Skip to content

feat(fit): Nacos 注册中心支持 HTTPS 双向认证 #284

Description

@surpercodehang

功能摘要 / Feature Summary

nacos 当前的代码配置未找到可以配置证书的选项,需要增加配置,支撑客户端与服务端的 https 双向认证

功能类型 / Feature Type

全新功能 / New Feature

优先级 / Priority

高 - 非常需要这个功能 / High - Really need this feature

问题描述 / Problem Description

在生产环境中,为了安全问题需要保证客户端与服务端的证书的双向认证,因此需要最新的nacos注册中心的连接也要支持证书的认证,当前问题可能有以下两种情况:
1、当前的代码配置不需要额外的证书接入位置,依赖框架自身的 https 能力以及在 nacos 服务端配置上证书即可实现双向认证(这里需要调研下,如何在 nacos 服务器中添加证书以及实现 https 的双向认证)
2、需要修改当前的配置,nacos 注册接口调用,需要额外配置证书信息(也需要调研下)。

建议的解决方案 / Proposed Solution

可能有以下两种情况:
1、当前的代码配置不需要额外的证书接入位置,依赖框架自身的 https 能力以及在 nacos 服务端配置上证书即可实现双向认证(这里需要调研下,如何在 nacos 服务器中添加证书以及实现 https 的双向认证)
2、需要修改当前的配置,nacos 注册接口调用,需要额外配置证书信息。

替代方案 / Alternative Solutions

No response

确认事项 / Confirmations

  • 我已经搜索了现有的 issues 和讨论,确认这不是重复建议
    I have searched existing issues and discussions, confirming this is not a duplicate suggestion

  • 这个功能符合项目的目标和范围
    This feature aligns with the project's goals and scope

  • 我理解这个功能可能需要时间来实现
    I understand this feature may take time to implement

  • 我愿意协助实现这个功能 (可选)
    I'm willing to help implement this feature (optional)

Activity

  1. added this to the 3.6.0 milestone on Sep 5, 2025
  2. mikeaaaaaa commented on Oct 17, 2025

    @mikeaaaaaa
    Contributor

    没有在nacos官方和其他地方找到有关nacos https双向认证有关的配置,官方主要推荐的鉴权方式为:https://nacos.io/zh-cn/docs/auth.html

  3. mikeaaaaaa commented on Oct 17, 2025

    @mikeaaaaaa
    Contributor

    可不可以nacos单独配置https证书,然后客户端通过密码或者其他nacos推荐的认证方式来保证连接的可靠性呢

  4. deleted a comment from on Nov 16, 2025
  5. modified the milestones: 3.6.0, 3.6.1 on Nov 18, 2025
  6. modified the milestones: 3.6.1, 3.6.2 on Dec 3, 2025
  7. modified the milestones: 3.6.2, 3.6.3 on Jan 9, 2026
  8. changed the title [-]nacos 版本的注册中心支持证书的接入,保证 https 的双向认证[/-] [+]feat(fit): Nacos 注册中心支持 HTTPS 双向认证[/+] on Jan 13, 2026
  9. modified the milestones: 3.6.3, 3.6.x on Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

  • Status
    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions