Skip to content

Is it possible to provide a URI to create a PKey?  #2059

@WolfDan

Description

@WolfDan

I'm working with the pkcs11-provider for OpenSSL 3; one way to use the provider is via a URI; openssl internally will make use of OSSL_STORE_INFO_get1_PKEY after getting a ctw and store info to get the provider key and use it internally. I can't see any function on PKey or a store module, so I'm wondering if that's possible with the library

For example, this command works with OpenSSL, but I'm unsure if -key "pkcs11:type=private;id=%00%01" will translate into rust-openssl

openssl req -new -x509 -days 365 -subj '/CN=my key/' -sha256 -provider pkcs11 -key "pkcs11:type=private;id=%00%01" -out cert.pem

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions