You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spring Boot SSL Bundle配置TLS协议与密码套件失效问题求助

Spring Boot SSL Bundle配置TLS协议与密码套件失效问题求助

我最近在尝试为Spring Boot的SSL Bundle配置指定的密码套件和TLS协议,参考给出的配置方式写了如下YAML配置:

spring:
  ssl:
    bundle:
      jks:
        foo:
          keystore:
            location: classpath:foo.pfx
            password: ""
            type: PKCS12
          protocols:
            - TLSv1.3
          ciphers:
            - TLS_AES_128_GCM_SHA256
        bar:
          keystore:
            location: classpath:bar.pfx
            password: ""
            type: PKCS12
          protocols:
            - TLSv1.3
          ciphers:
            - TLS_AES_128_GCM_SHA256
server:
  ssl:
    server-name-bundles:
      - server-name: foo.example.com
        bundle: foo
      - server-name: bar.example.net
        bundle: bar

但实际运行后发现这个配置根本没生效——客户端仍然可以通过TLSv1.2成功连接服务端,完全不受我设置的TLSv1.3限制。我翻遍了Spring Boot的官方文档,却完全找不到在SSL Bundle中指定密码套件和协议的相关说明。

有没有大佬能帮忙分析下问题出在哪,或者告诉我正确的配置方式应该是怎样的?

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.08 03:09:27