maskit opened a new issue, #13985:
URL: https://github.com/apache/trafficserver/issues/13985

   With OpenSSL, a `TS_SSL_VERIFY_CLIENT_HOOK` plugin cannot see the raw public 
key a client presented (RFC 7250, added in PR 13548).
   
   For a raw public key the hook gets no verify context, so 
`TSVConnSslVerifyCTXGet()` returns `nullptr`, on both libraries. With BoringSSL 
the plugin can read the key with `SSL_get0_peer_rpk()` on the connection's SSL 
object. OpenSSL attaches a client's key to the session only after verification 
returns (`tls_process_client_rpk()` in `ssl/statem/statem_srvr.c`), so inside 
the hook `SSL_get0_peer_rpk()` returns `NULL`. `TSVConnSslVerifyCTXGet.en.rst` 
documents the limitation.
   
   The server side is unaffected: OpenSSL stores the next hop's key before 
verification, so `TS_SSL_VERIFY_SERVER_HOOK` can read it on both libraries.
   
   Making the key available would need either passing the `X509_STORE_CTX` on 
this path, where `X509_STORE_CTX_get0_rpk()` returns it (with care for plugins 
that expect a certificate whenever the context is non-null), or exposing the 
key some other way.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to