Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 6:53 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue May 03, 2016 11:21 pm 
Offline

Joined: Tue May 03, 2016 11:09 pm
Posts: 6
Hi,

I just bought my 3rd Yubikey, the YK4, (neo and standard before that) and set it up on my Arch Linux machine. All no problemo, Now here's my problem:

When I use the GPA to access my YK4 on Windows 10 (dev machine, need git signing, hence cli tools) it all works flawless (get shown all details and can edit them), however `gpg --card-status --verbose` gives me this output:
Quote:
C:\Users\t4cc0>gpg --card-status --verbose
gpg: detected reader `Yubico Yubikey 4 OTP+U2F+CCID 0'
gpg: reader slot 0: not connected
gpg: reader slot 0: active protocol: T1
gpg: slot 0: ATR=3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4
gpg: pcsc_transmit failed: invalid parameter (0x80100004)
gpg: apdu_send_simple(0) failed: invalid value
Please insert the card and hit return or enter 'c' to cancel: c
gpg: selecting openpgp failed: invalid argument
gpg: OpenPGP card not available: general error


GPA: Image

Using the same yk and the same command on Arch works perfect.

I have already tried removing all drivers fro the device manager and installing newer USB drivers. Anything I missed in the setup guide? I am really at the end of my ideas and googleing the error also did not result in any solutions.

Update: Just tried this, without success, but a different error:
Quote:
PS C:\Users\t4cc0> gpg-connect-agent.exe /bye
PS C:\Users\t4cc0> gpg --card-status --verbose
gpg: detected reader `Yubico Yubikey 4 OTP+U2F+CCID 0'
gpg: reader slot 0: not connected
gpg: pcsc_connect failed: sharing violation (0x8010000b)
gpg: reader slot 0: not connected
gpg: apdu_send_simple(0) failed: locking failed
Please insert the card and hit return or enter 'c' to cancel: c
gpg: selecting openpgp failed: general error
gpg: OpenPGP card not available: general error


Last edited by T4cC0re on Sun Jun 19, 2016 3:46 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Tue May 03, 2016 11:56 pm 
Offline
Yubico Team
Yubico Team

Joined: Thu Oct 16, 2014 3:44 pm
Posts: 349
Have you tried ending the two GnuPG processes running in Task Manager and removing and reinserting the YubiKey?


Top
 Profile  
Reply with quote  
PostPosted: Wed May 04, 2016 12:21 am 
Offline

Joined: Tue May 03, 2016 11:09 pm
Posts: 6
ChrisHalos wrote:
Have you tried ending the two GnuPG processes running in Task Manager and removing and reinserting the YubiKey?


Yes, i get the same errors.


Top
 Profile  
Reply with quote  
PostPosted: Sat May 07, 2016 4:01 am 
Offline

Joined: Tue May 03, 2016 11:09 pm
Posts: 6
Okay, I got it (partially) working!

Solution was rather simple after digging into GPG-Configs on linux:

Set environment variables:
GNUPGHOME=%APPDATA%\gnupg

and use gpg2. That's it. Because if that variable is not set it will look in the wrong folder.
Need to start GPA once and then it's all okay :)

Still need to get git-bash's ssh working though, so I leave this thread open a little longer


Top
 Profile  
Reply with quote  
PostPosted: Tue May 10, 2016 9:15 pm 
Offline
Yubico Team
Yubico Team

Joined: Thu Oct 16, 2014 3:44 pm
Posts: 349
Did you have any luck with git-bash ssh?


Top
 Profile  
Reply with quote  
PostPosted: Wed May 11, 2016 11:04 am 
Offline

Joined: Tue May 03, 2016 11:09 pm
Posts: 6
Not, yet. And I cannot seem to find out why :/

Do you have any idea i could try?

Update:

Found the solution: Configure the GPG-Agent to start with --enable-putty-support and then run
Code:
eval $(ssh-pageant -r -a "/tmp/.ssh-pageant-$USERNAME")

from the git-bash and everything works!

/closed


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group