Skip to content

Allow to trigger a TLS 1.3 KeyUpdate #1501

Description

@adiroiban

If you have a long-lived connection that does a lot of data transfer it might help to refresh the session key.

For example during the download or upload of a 4GB file.

This is for the following low-level API https://docs.openssl.org/master/man3/SSL_key_update/

#include <openssl/ssl.h>

int SSL_key_update(SSL *s, int updatetype);
int SSL_get_key_update_type(const SSL *s);

We already have Context.set_timeout which restrict the time after which connections can reuse an already negotiated session ... but if you have a single long lasting session , I am not sure that pyOpenSSL triggers any key updates.

This is only for TLS 1.3

The API is also available for QUIC.. but I don't know if pyOpenSSL supports it.


I am opening this issue here to see if it make sense to expose this API.

Activity

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

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