Skip to content

Import fails with RSA-PSS keys #721

@lhazlewood

Description

@lhazlewood

Test:

$ softhsm2-util --version
2.6.1

$ openssl version
OpenSSL 3.1.2 1 Aug 2023 (Library: OpenSSL 3.1.2 1 Aug 2023)

$ softhsm2-util --init-token --free --label rsapsstest --so-pin 1234 --pin 1234
Slot 1 has a free/uninitialized token.
The token has been initialized and is reassigned to slot 456343862

$ openssl genpkey -algorithm RSA-PSS -pkeyopt rsa_keygen_bits:2048 -out rsapss2048.pkcs8.pem

$ softhsm2-util --so-pin 1234 --pin 1234 --token rsapsstest --import rsapss2048.pkcs8.pem --label rsapss2048 --id 0001
Found slot 456343862 with matching token label.
ERROR: Cannot handle this algorithm.

If it helps, I'm using homebrew's distribution on MacOS: https://formulae.brew.sh/formula/softhsm

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