extractClientCertificate
Description
This directive extracts the client certificate for the client mTLS connection where the request was made.
If there is no client trusted certificate present (can only happen with setWantClientAuth(true)
) the request is rejected with a TlsClientUnverifiedRejection
TlsClientUnverifiedRejection
.
Note
Using this directive requires tls-session info parsing to be enabled: akka.http.server.parsing.tls-session-info-header = on
and that the server ConnectionContext SSLEngine was set up with either setWantClientAuth(true)
or setNeedClientAuth(true)