Re: How can I read labels of (certificates, private keys) from PKCS11 device?

Peter Gutmann <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
"Peter Rybar" <[email protected]> writes:

>How can I read labels of (certificates, private keys) from PKCS11 device?
>
>Labels are usually generated by CA and users do know labels.
>
>Labels are used by cl32.dll for selection of right key.
>
>Which function can be used and how it can be done in cl32.dll?

Once you've created a context from a PKCS #11 device you can read the label
using the CRYPT_CTXINFO_LABEL attribute.

If you want to enumerate every object in a PKCS #11 token and browse their
labels you'll need to use a vendor-provided token browser for this.

Peter.

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.