Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nethsm: Improve base64 handling and add key import from PEM #539

Merged
merged 2 commits into from
May 13, 2024

Commits on May 3, 2024

  1. nethsm: Ignore whitespace in base64 data

    This patch updates the nethsm dependency to v1.1.0 and uses the new
    ignore_whitespace option in Base64.from_encoded to ignore whitespace in
    our base64 input.  The main motivation is that the base64 tool per
    default inserts linebreaks into long data, so previously piping the
    base64 output into pynitrokey could lead to errors.
    
    Fixes: #538
    robin-nitrokey committed May 3, 2024
    Configuration menu
    Copy the full SHA
    66b43d5 View commit details
    Browse the repository at this point in the history
  2. nethsm: Support key import from PEM files

    The nethsm SDK v1.1.0 added support for importing keys from PEM files.
    This patch adds an import-key subcommand to pynitrokey.
    
    Fixes: #537
    robin-nitrokey committed May 3, 2024
    Configuration menu
    Copy the full SHA
    3d24951 View commit details
    Browse the repository at this point in the history