Skip to content

Conversation

@mmarczuk
Copy link

@mmarczuk mmarczuk commented Dec 3, 2025

What changes were proposed in this pull request?

  • Fix of the load_pem_private_key method call, including the passphrase parameter, to enable reading encrypted .pem files.

How was this patch tested?

  • This code line was likely left incorrect after the upgrade to Python 3, where some commits were lost and had to be recreated.
  • The correct version was already available in this commit: 7b8e2b4.
  • However, the current version is based on an older commit: 4bc796b.
  • The code was tested at a customer environment. Before applying this fix, we were seeing the error “Password was not given but private key is encrypted”, because the passphrase was never actually used when loading the PEM file.
    After applying the correction, it is now possible to use an encrypted PEM file without any issues.

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.

1 participant