Skip to content

Communicating result of verify_client_cert with application #2416

@tvsfx

Description

@tvsfx

Checklist

  • I've searched the issue tracker for similar requests

Is your feature request related to a problem? Please describe.
We have a ClientCertVerifier instance for which we would like to extract the result of the call to verify_client_cert. More specifically, we need to know if any Error occurred during cert verification, so that we can decide whether to proceed with the connection later on.

Currently, we do this by setting up a new ClientCertVerifier for each connection, and making it so this verifier shares a piece of state with some other code that makes these decisions (it relies upon other state to do this). This means we need to set up a new ServerConfig to pass into the Acceptor API for each connection, rather than keeping a handful of pre-built configs around.

Describe the solution you'd like
I was wondering if there's a better way to do this; either an API I'm missing, or a way to inspect specifically the result of client verification. This issue's comment seems to describe a similar situation, and hints at the fact that there is currently no better solution (?).
Alternatively, I considered having a single ClientCertVerifier and creating a cache with client cert verification results, but the verify_client_cert API does not provide me with a way to uniquely identify the current handshake such that I can retrieve the state for the resulting stream elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy