You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
First I wanted to know if there is any doc for the softhsm2-util especially using "import" action. Because I am having a few problems when I'm trying to import a RSA public keys that are - as far as I understood - can't be in PKCS8 format, to resolve that I tried to work around this issue by using the "--aes" option but I don't think that it is the proper way to do it.
On the other hand, when I am trying to use an AES secret key (successfully imported using --aes ) I keep getting this error:
68 ErrorCode corresponding to: KEY_FUNCTION_NOT_PERMITTED
maybe it is coming from the format I am using for my AES key as it also can't be in PKCS8 format and there is no specifications on how it should be handled.
The text was updated successfully, but these errors were encountered:
softhsm2-util --import private_pkcs8.key --token "TEST" --label "TEST_PRIV" --id A001 --force
=> The key pair has been imported.
softhsm2-util --import public.pem --token "TEST" --label "TEST_PUB" --id A002 --force
=> ERROR: Could not read the PKCS#8 file. Maybe it is encypted (--file-pin )
So basically I am not able to import the public key even that it is actually in the format mentioned in the answer above
Hello,
First I wanted to know if there is any doc for the softhsm2-util especially using "import" action. Because I am having a few problems when I'm trying to import a RSA public keys that are - as far as I understood - can't be in PKCS8 format, to resolve that I tried to work around this issue by using the "--aes" option but I don't think that it is the proper way to do it.
On the other hand, when I am trying to use an AES secret key (successfully imported using --aes ) I keep getting this error:
68 ErrorCode corresponding to: KEY_FUNCTION_NOT_PERMITTED
maybe it is coming from the format I am using for my AES key as it also can't be in PKCS8 format and there is no specifications on how it should be handled.
The text was updated successfully, but these errors were encountered: