August 24, 2016

How To List Certificates on Smart Card with KeyTool

You can list your certificates on smart card with keytool and PKCS11

$ keytool -list -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg /foo/bar/token.config -v

And in token.config you specify you PKCS#11 implementation.

name = FooAccelerator
library = /opt/foo/lib/libpkcs11.so

On Windows it will be a DLL.

Se also http://docs.oracle.com/javase/7/docs/technotes/guides/security/p11guide.html

No comments: