Yubico Forum
https://forum.yubico.com/

Implementing GPG in Yubikey NEO
https://forum.yubico.com/viewtopic.php?f=26&t=1000
Page 2 of 3

Author:  andrefiuza [ Wed Mar 27, 2013 5:37 pm ]
Post subject:  Re: Implementing GPG in Yubikey NEO

Klas,

I will be sending to your e-mail.

Regards

André

Author:  Klas [ Tue Apr 02, 2013 7:55 am ]
Post subject:  Re: Implementing GPG in Yubikey NEO

Very good, now let's solve this..

On your screenshot it looks like your computer thinks it has several smart card readers, that' probably why it gets confused, so I want you to:

* Create a file called scdaemon.conf in your gnupg home directory (for me that is at c:\Users\UserName\AppData\Roaming\gnupg\) the directory should already exist.
* Add the line: reader-port Yubikey Neo OTP+CCID
* Make sure there is no process running namned scdaemon
* Run gpg --card-status

/klas

Author:  andrefiuza [ Tue Apr 02, 2013 12:38 pm ]
Post subject:  Re: Implementing GPG in Yubikey NEO

Klas,

It didn´t work. I am still receiving this message:

gpg:Selecting openpgp failed: Card error

gpg:openPGP card not available : card error.

Any new idea?

tks

Author:  Klas [ Wed Apr 03, 2013 7:42 am ]
Post subject:  Re: Implementing GPG in Yubikey NEO

Unfortunately I get much the same results. It seems difficult to specify the reader to use under windows, your best bet is probably disabling the other smartcard readers from the device manager. Having done that the YubiKey NEO should be the only smartcard reader in the system and thus the one selected.

/klas

Author:  MarcRoberts [ Wed Apr 03, 2013 11:05 am ]
Post subject:  Re: Implementing GPG in Yubikey NEO

I'm also getting:

gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error

I'm in mode 82 and my device manager looks like attached.

I'm Windows 8 x64.

My Neo version is 3.1.0.

I do have another card reader which you can see I've disabled.

Cheers

Marc

Attachments:
Dev Manager.PNG
Dev Manager.PNG [ 25.97 KiB | Viewed 9464 times ]

Author:  Klas [ Wed Apr 03, 2013 12:30 pm ]
Post subject:  Re: Implementing GPG in Yubikey NEO

After you've disabled the other card reader:
* unplug the neo
* kill the processes scdaemon and gpg-agent
* replug the neo

That works for me on a windows 7 machine with another card reader.

/klas

Author:  MarcRoberts [ Wed Apr 03, 2013 2:24 pm ]
Post subject:  Re: Implementing GPG in Yubikey NEO

Thanks Klas,

I had to physically remove the other reader and reboot, but it's working now.

One thing I'm a little confused about... The instructions say that it's impossible to backup the secret key, but Kleopatra says it's available and lets me export it?

Cheers

Marc

*Edit*
NVM, I think I get it all now. Ta for help :)

Author:  maartenvannoorden [ Fri Sep 27, 2013 3:03 pm ]
Post subject:  Re: Implementing GPG in Yubikey NEO

Same problem here:

Disabled all other smartcards and killed processes. Still card not recognized by win7 64b

Maarten

Author:  eythian [ Mon Sep 30, 2013 3:25 am ]
Post subject:  Re: Implementing GPG in Yubikey NEO

MarcRoberts wrote:
Thanks Klas,
One thing I'm a little confused about... The instructions say that it's impossible to backup the secret key, but Kleopatra says it's available and lets me export it?

I think it's just exporting a stub that says "go look for the smartcard with this serial number" so that you can reference it on other computers. Note that all YubiKey NEOs present a serial number of 000000000001, so beware of relying on that.

This is what gpg --export-secret-key does, anyway.

Author:  bober [ Fri Nov 15, 2013 7:39 pm ]
Post subject:  Re: Implementing GPG in Yubikey NEO

Hi,

I just had the same problem with a build-in smartcard reader. The approach of Klas was right.
But you have to add this line to your scdaemon.conf:
Code:
reader-port Yubico Yubikey NEO OTP+CCID 0

That's the name scdaemon recognizes the Yubikey with the corresponding Port "0".

Regards,
bober

Page 2 of 3 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/