apache/dubbo
Auf GitHub ansehenNettyConnectionClient And NettyClient support SslContext rebuild when reconnect
Open
#13.225 geöffnet am 17. Okt. 2023
component/sdkhelp wantedtype/proposal
Repository-Metriken
- Stars
- (41.524 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 7T 14h) (20 gemergte PRs in 30 T)
Beschreibung
- I have searched the issues of this repository and believe that this is not a duplicate.
- I have searched the release notes of this repository and believe that this is not a duplicate.
Describe the feature
org.apache.dubbo.remoting.transport.netty4.ExtNettyConnectionClient#initBootstrap org.apache.dubbo.remoting.transport.netty4.NettyClient#initBootstrap SslContext均在ChannelInitializer外部构建初始化, 在开启MTls认证时, 客户端证书可能因为轮换或者禁用发生变更, 此时重新建连 是无法使用最新的证书进行认证的. 建议将SslContext sslContext = SslContexts.buildClientSslContext(getUrl()); 迁移到ChannelInitializer内部.