RFR: 8326233 Utils#copySSLParameters loses needClientAuth Setting

Daniel Jeliński djelinski at openjdk.org
Tue Feb 20 10:55:53 UTC 2024


On Tue, 20 Feb 2024 10:07:50 GMT, Valentin Brandl <duke at openjdk.org> wrote:

> I didn't know this. Is there any way to force the client to use mTLS or fail?

None that I know of. But this would only be needed to detect misconfigured servers that don't ask for the client certificate when they are supposed to. If that's what you want to do, you can detect this after the fact by retrieving `HttpResponse#sslSession()` -> `SSLSession#getLocalCertificates()`.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17923#issuecomment-1953954646


More information about the net-dev mailing list