Skip to content
Discussion options

You must be logged in to vote

At the moment we do not have a way to import a key as a token object (persistent), only as a session object (ephemeral).

Import currently go via keymgmt, although arguably it would be better to have a STORE api to deal with storage. Encoders/decoders are orthogonal, they deal with format interpretation.

We could add a pkcs11-provider specific OSSL_PARAM to pass into EVP_PKEY_fromdata() that will cause the creation of a token key (assuming the user is permitted to do so).

Generally persistent keys are either generated on the tokens directly, or imported once off-band via tools like pkcs11-tool or pkcs11 driver specific tools, so this has not been an important feature so far.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Ayke
Comment options

@Ayke
Comment options

@simo5
Comment options

Answer selected by Ayke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants