Jean-Michel Pouré - GOOZE wrote:
> Thanks I updated the doc with examples. 
> Now, I try to reproduce with ssh-add:
> 
> PKCS11SPY=/usr/lib/pkcs11/opensc-pkcs11.so \
> PKCS11SPY_OUTPUT=/tmp/pkcs-spy.log \
> ssh-add -s /usr/lib/pkcs11-spy.so
> 
> Enter passphrase for PKCS#11: 
> SSH_AGENT_FAILURE
> Could not add card: /usr/lib/pkcs11-spy.so

I think the agent will access the card, not ssh-add. So you need to
set the environment variables when you start the agent, not when
running ssh-add. (Maybe both, actually!)


//Peter
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to