Yubico Forum

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

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Nov 25, 2014 11:13 pm 
Offline

Joined: Tue Nov 25, 2014 10:38 pm
Posts: 12
I'm trying to setup my YubiKey on Ubuntu 12.04. While I'm aware that I can't setup U2F until I can get to a supported operating system (of which Ubuntu 12.04 LTS is _not_ one), I'm having trouble setting up my YubiKey NEO with OpenPGP.

Here's the rule I currently have at /etc/udev/rules.d/99-yubikey.rules
Code:
SUBYSTEMS=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}="0111", OWNER="tk", GROUP="plugdev", MODE="0660"

I set the device mode to 84:
Code:
ykpersonalize -m84

I remove the device, wait a second or two, then plug it back in again. Next:
Code:
gpg --card-edit

To which I receive the following error message:
Code:
gpg: selecting openpgp failed: ec=6.32848
gpg: OpenPGP card not available: general error

It seems that my permissions might not be working.

I have disabled "gnome-keyring-daemon --start --components=gpg" from starting on session login, and manually run "gpg-agent --daemon". How can I get this working again?


Top
 Profile  
Reply with quote  

Share On:

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

PostPosted: Tue Nov 25, 2014 11:40 pm 
Offline

Joined: Tue Nov 25, 2014 11:36 pm
Posts: 1
After getting the same error in Ubuntu 14.04, disabling U2F (mode 0x82 if I remember correctly) did the trick for me.


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 25, 2014 11:48 pm 
Offline

Joined: Tue Nov 25, 2014 10:38 pm
Posts: 12
Okay, so that enabled me to be able to --card-edit, but now I have a different problem. I can't seem to edit any of the values on the card:

Code:
gpg/card> admin
Admin commands are allowed

gpg/card> sex
Sex ((M)ale, (F)emale or space): m
gpg: sending command `SCD SETATTR' to agent failed: ec=6.87
gpg: error setting sex: general error


How do I fix this?


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 26, 2014 10:24 pm 
Offline

Joined: Tue Nov 25, 2014 10:38 pm
Posts: 12
Any ideas? Is my USB device in read-only mode? How could I check?


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 27, 2014 2:30 pm 
Offline
Site Admin
Site Admin

Joined: Wed Nov 14, 2012 2:59 pm
Posts: 666
Please read documentation before posting or changing settings:
https://developers.yubico.com/yubikey-personalization/

_________________
-Tom


Top
 Profile  
Reply with quote  
PostPosted: Mon Dec 01, 2014 7:19 pm 
Offline

Joined: Tue Nov 25, 2014 10:38 pm
Posts: 12
Are you referencing this issue? https://developers.yubico.com/yubikey-p ... Issue.html

Since I installed the Yubikey Personalization Tool from the Yubico PPA, do I still need to do this workaround?


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 8 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:  
Powered by phpBB® Forum Software © phpBB Group