Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add ssl.HAS_PSK_TLS13 to detect libssl external TLS 1.3 PSK support #133623

Closed
Labels
@WillChilds-Klein

Description

@WillChilds-Klein

Proposal:

Due tosecurity concerns, neither AWS-LCnor BoringSSL support "External PSK" (as definedhere) in TLS 1.3.

This issue proposes the addition of a boolean propertyssl.HAS_PSK_TLS13 to indicate whether the crypto library CPython is built against supports External PSK, allowing python's test suite and consuming modules to branch accordingly.

This feature has precedent in thessl.HAS_PSK andssl.HAS_PHA flags indicating support (or lack thereof) for other TLS features that are not universally implemented across TLS libraries.

One Hard Thing: Naming Concerns

I'm not sure thatHAS_PSK_TLS13 is the best name. While AWS-LC doesn't support "External PSKs" in TLS 1.3 (i.e. "PSK" is only used for session resumption), itdoes for earlier TLS versions. However, the "external" terminology established in RFC 9258 pertains specifically to TLS 1.3. So do we includeEXTERNAL instead ofTLS13 in thessl module property name? My thought is "no" because it's somewhat imprecise.

A further complication is that AWS-LC does notionally support PSK in TLS 1.3, butonly for session resumption (this is fine security-wise, as sessions can't span protocol versions). This makes the current suggestion ofHAS_PSK_TLS13 somewhat disingenuous, as thePreSharedKeyExtension is indeed used.

Something likessl.HAS_TLS13_EXTERNAL_PSK "feels" like an abomination, but is probably the most accurate. Anyway, I don't see a clear choice and am very open to suggestions.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

Related changes to increase libcrypto/libssl compatibility (specifically with AWS-LC) have been discussed with the communityhere.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp