Skip to content

Remove usage of OpenSSL.crypto.sign#1113

Open
salv-orlando wants to merge 1 commit intovmware:masterfrom
salv-orlando:issue_1112
Open

Remove usage of OpenSSL.crypto.sign#1113
salv-orlando wants to merge 1 commit intovmware:masterfrom
salv-orlando:issue_1112

Conversation

@salv-orlando
Copy link
Copy Markdown
Member

This method has been removed in PyOpenSSL 24.3.0.
This change replaces it with equivalent functions from python's cryptography library.
In this way, the pyvim module can be used with recent versions of PyOpenSSL. This needed in particular due to CVE-2026-27459, which requires upgrading PyOpenSSL to 26.0.0.

Changes in this commit:

  • Update the signing logic inside pyVim/sso.py's _sign helper to leverage Python's cryptography package primitives, replacing the legacy OpenSSL.crypto.sign wrapper.
  • Remove the constraint on pyOpenSSL in pyproject.toml. The whole repository is not using any other deprecated or removed feature in puOpenSSL.

Resolves: #1112

This method has been removed in PyOpenSSL 24.3.0.
This change replaces it with equivalent functions from python's
cryptography library.
In this way, the pyvim module can be used with recent versions
of PyOpenSSL. This needed in particular due to CVE-2026-27459,
which requires upgrading PyOpenSSL to 26.0.0.

Changes in this commit:
- Update the signing logic inside pyVim/sso.py's _sign helper
  to leverage Python's cryptography package primitives, replacing
  the legacy OpenSSL.crypto.sign wrapper.
- Remove the constraint on pyOpenSSL in pyproject.toml. The
  whole repository is not using any other deprecated or removed
  feature in puOpenSSL.

Resolves: vmware#1112

Signed-off-by: Salvatore Orlando <salvatore.orlando@broadcom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PyOpenSSL 26.0.0 required to fix CVE-2026-27459

1 participant