Visitar URL original
expose negotiated TLS 1.3 namedgroup in TlsContext / SecurityParameters · Issue #2117 · bcgit/bc-java · GitHub
Skip to content

expose negotiated TLS 1.3 namedgroup in TlsContext / SecurityParameters #2117

Description

@jschauma

It can be desirable for the TLS server to know which NamedGroup was negotiated for a given connection. I don't believe there currently exists a way to extract this information from a TlsContext.

For this, it might be useful to add a SecurityParameters.getNegotiatedGroup() similar to SecuriyParameters.getNegotiatedVersion() or SecurityParameters.getCipherSuite().

Activity

  1. self-assigned this
    on Jul 3, 2025
  2. theobisproject commented on Nov 29, 2025

    @theobisproject

    I am also interested in having this information available for PQC tracking of TLS connection for client and server.
    @peterdettman Let me know when there is help needed for this enhancement.

  3. peterdettman commented on Dec 3, 2025

    @peterdettman
    Collaborator

    Added SecurityParameters.getNegotiatedGroup() as requested. Currently only set for TLS 1.3.

  4. theobisproject commented on Dec 6, 2025

    @theobisproject

    I'm trying to figure out how to access the SecurityParameter from a SSLEngine. There is obviously no standard API from the JDK but I also found no way to access it from the ProvSSLEngine object (hoping I haven't overlooked something obvious).
    If this is currently not possible could this information be made available via the SSLEngine implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions