jetty/jetty.project

Easier access to invalid client certificates

開放

#6,067 建立於 2021年3月17日

 (5 則留言) (0 個反應) (0 位負責人)Java (1,913 個分叉)batch import
Help Wanted

倉庫指標

星標
 (3,701 顆星)
PR 合併指標
 (平均合併 6天 14小時) (30 天內合併 48 個 PR)

描述

Jetty version 10.0.x

Description During the TLS handshake, in case of needClientAuth, the client may send an invalid (e.g. expired) certificate. The validation checks are performed by the TrustManager and if they fail there is no way to access the expired client certificate, for example in SslHandshakeListener.handshakeFailed(), as it is not exposed via SSLSession.getPeerCertificate(), etc.

The only option would be to wrap the TrustManager, but that requires subclassing SslContextFactory.Server and overriding getTrustManager(), whose signature is likely to change in light of #6054.

Would be great to have a more stable way to provide hooks into the TrustManager in a simpler way.

貢獻者指南