Re: changing the user PIN for a smartcard in a script

2014-10-31 Thread Bernhard Reiter
On Wednesday 29 October 2014 at 22:29:07, Florin Andrei wrote: > Ideally, I would run a script, have the user type in the new PIN, and > the script would run "gpg --change-pin", do another thing with the PIN > string after that, then discard it. > > The problem, of course, is that pinentry is launc

changing the user PIN for a smartcard in a script

2014-10-29 Thread Florin Andrei
I'm programming the smartcards on a bunch of YubiKey NEO tokens. Before I give the token to the user, I would like to allow them to pick a new user PIN and set it. I don't need to know their PIN and I actually don't *want* to know it. Ideally, I would run a script, have the user type in the ne