I'm using eToken in Linux and I need to view certificates stored on eToken in JAVA. I have been searching for tools and I found keytool, but If I use this howto, keytool shows me that there is 0 certs.
in keytool-etoken.cfg I have:
name = eToken
library = /usr/lib/libeTPkcs11.so
command:
keytool -list -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg keytool-etoken.cfg
output:
Enter keystore password:
Keystore type: PKCS11
Keystore provider: SunPKCS11-NSS
Your keystore contains 0 entries
What should I do to see and use certs on eToken? In Firefox or Chrome it works great.