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

Import fails with RSA-PSS keys #721

Open
lhazlewood opened this issue Aug 29, 2023 · 1 comment
Open

Import fails with RSA-PSS keys #721

lhazlewood opened this issue Aug 29, 2023 · 1 comment

Comments

@lhazlewood
Copy link

lhazlewood commented Aug 29, 2023

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

@lhazlewood
Copy link
Author

Same result on Ubuntu 22.0.4.3 LTS using SoftHSM 2.6.1 and OpenSSL 3.0.2.

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

No branches or pull requests

1 participant