Yubico Forum

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

All times are UTC + 1 hour




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Apr 10, 2015 11:11 pm 
Offline

Joined: Fri Apr 10, 2015 10:36 pm
Posts: 14
Hello.

I am a new customer of Yubico, just bought Yubikey NEO and now trying to figure out how to deal with that cool stuff :) First of all sorry for future mistakes as english is not my native language...

Now I want to ask some questions with summary that I understood as I can't find this all in one place:

1. As I understood NEO has 2 slots for OTP+U2F and five slots for applets use with 2005 bytes max? Or this is only for PIV but for openpgp it hase 3 slots?

2. Are slots(2) for OTP/U2F and slots(5) for PIV(PGP?) separate so I can use maximum 3 functions of NEO like OTP + static + PIV? for CCID can be active only one applet from choice of PGP and PIV? As I see 5 applets and as I understood from some posts on forum 1-2-3 applets servicing two slots(in OTP/U2F mode) and 4-5(PGP+PIV) works only in CCID mode with separate store space for objects?

3. I can't understand one more thing... for offline use should I choose Challenge-Response mode with HMAC-SHA1 only? (except static pass)

4. Is there any way to use NEO for many sites like Google/Dropbox and etc(with Yubico Authentificator for Android) + PAM for OS X only from 1 slot? I got confused about operation with C-R and different targets to use with. (as second slot will be busy for static pass only..)

5. Downloaded OpenSC, yubico-piv-tool to try them with TrueCrypt(VeraCrypt) thought PKCS#11 support. I have chosen opensc pkcs11 library, clicking Manage Security Tokens, enters pin for PIV applet and see 3 objects: Cardholder Fingerprints, Printed Information, Cardholder Facial Image , but I can't imort nor export new objects(keys)! - FUNCTION NOT SUPPORTED. When trying to use one of that 3 keys - GENERAL ERROR . I thought that I need to make new manage key + generate some private key by piv tool - made that, but I don't see it... As I see on google other people is using smart cards through opensc with truecrypt , so there is no problem with truecrypt, but with support of NEO with opensc? or I need to make some type of setup or setup NEO for openpgp use ?

Thanks in advance for your answers!
To Yubico team - there is lack of materials about YubiKey for dummies...


Last edited by briskspirit on Wed Apr 15, 2015 11:18 pm, edited 3 times in total.

Top
 Profile  
Reply with quote  

Share On:

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

PostPosted: Sat Apr 11, 2015 10:34 pm 
Offline

Joined: Fri Apr 10, 2015 10:36 pm
Posts: 14
Hi again. I want to answer by myself for some questions and some of them make more concrete.

5. I understood the problem with VeraCrypt/TrueCrypt and YubiNEO. (Maybe forum admin should stick this info for future users): We have got a chain with Yubikey in CCID mode(PIV applet or PGP) - OpenSC library in the middle - Truecrypt/Veracrypt PKCS#11. Truecrypt/Veracrypt wish to work with object storage in NEO key through PIV applet, NEO is ok with such objects as I understand, thats why I can see 3 stores called Cardholder Fingerprints, Printed Information, Cardholder Facial Image. But problem is located in the OpenSC lib and how it works with NEO! This lib can't work with objects(e.g. key files, photos or etc) that is needed by Truecrypt/Veracrypt, so we(all who want this stuff to work) need to ask OpenSC community to fix this ! There is a lib in Internet called openpgp-pkcs11.so(or something like that, on german site), as I see through other forums it works fine with TC/VC , but is only available to Linux/Windows OSes. Beside that of course we can still use static password, but this is not "so cool" and that is! Because PKCS11 feature will not give all benefits as by TC/VC it is used only like a file container for key file(e.g. like flash drive, but with PIN and read-only), so it can be stolen same way like your static password :)

About questions 1-2-3-4:
-- I have understood that there is 3 applets that depends on slot 1/2 + 2 applets (PIV and PGP) that depends on 2005bytes of data for 5 slots, right? May I use both PGP and PIV or only one of them?
-- If one of slots is busy with static password, can I use second one for multiple purposes like PAM Challenge-Response for OS X + same Challenge-Response for other sites through Android Authenticator ?

Thanks in advance ;)


Top
 Profile  
Reply with quote  
PostPosted: Sat Apr 11, 2015 10:40 pm 
Offline

Joined: Fri Apr 10, 2015 10:36 pm
Posts: 14
Oh, and one more small question - can I change which slot to "see" through NFC from my phone? Or only to reprogram it from my computer?

Ideal way to use my single key:
1 - static pass
2 - PAM auth for OS X(or other OSes)
3 - challenge-response for some sites(google, dropbox and etc?)
4 - CCID applet (will decide later which to use PGP or PIV)


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 13, 2015 8:31 am 
Offline
Site Admin
Site Admin

Joined: Mon Dec 08, 2014 2:52 pm
Posts: 314
Hello,

I'll partially reply your thread. There is a lot of documentation available at developers.yubico.com and yubico.com/documentation that answers the majority of your questions.

All Yubikeys comes with 2 configuration slot for the "OTP" part. Use the Yubico Cross Platform personalization tool to configure slot 1 and 2.
Your Yubikey could be configured for example with:
slot 1 = Yubico OTP
slot 2 = HMAC-SHA1 CR

The CCID part of the Yubikeys allows you to talk with the applets installed on the Yubikey NEO. OpenPGP OATH and PIV. The configuration slot have nothing to do with these applets.
Using U2F does not consume a configuration slot, and you can use the same Yubikeys "unlimited" amount of times for U2F registering on any service provider offering U2F.

The PIV slots are relative to the PIV applet and each of them holds the proper cert for signing, authentication etc. Read the documentation about PIV to understand the meaning of PIV "slots".


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 13, 2015 9:45 am 
Offline

Joined: Fri Apr 10, 2015 10:36 pm
Posts: 14
Thank you, Tom! I almost got all answers for my questions, but I want clarify some points.

I understood all about OTP part about 2 slots.
What about using OpenPGP OATH and PIV applets in parallel ? I can use only one active from them or OATH+PIV or PGP+PIV can be used at same time? (about PIV slots I understood about 9A-9E slots with 2005bytes overall data)

and in that case i can use such scenario for me:

OTP part:
slot 1: static pass for TrueCrypt and etc(like 1Password)
slot 2: HMAC-SHA1 CR for PAM with OSes
U2F part:
for gmail and sites, that support U2F
CCID part:
PIV or(and?) PGP applet
And what about YubiOATH ?

Am I right, Tom? Trying to choose most efficient scenario :)

And it seems that U2F is only used by Google... (plus YouTube, OpenSSH, Linux PAM and that is almost all)

Thanks for replies! And Tom, maybe you can add about TC/VC and PKCS#11 to sticky thread? As this questions I see through forum too often, but without real answers. Only about that TC is too old and about static pass or why OTP can't be used.


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 13, 2015 1:44 pm 
Offline
Site Admin
Site Admin

Joined: Mon Dec 08, 2014 2:52 pm
Posts: 314
You can use any applet at any time, unless the NEO is busy doing something else.

For example:
You can run an SSH session authenticating yourself using the OpenPGP applet and then you can run Remote Desktop and authenticate using the PIV applet against a window server.

Sticky posts are only for HOW TO guides written properly with scoped topic. If you are willing to write one, we'll make it sticky viewtopic.php?f=26&t=919


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 13, 2015 2:16 pm 
Offline

Joined: Fri Apr 10, 2015 10:36 pm
Posts: 14
Thank you, Tom. About HOW-TO - I will write it as soon as I can use pkcs on any of OSes(but will need some grammar help)

About applets now I understood almost all :) But what about free space for each of applet? PIV has 2005 bytes, PGP has 3 slots for keys as I understood, but there is must be some limitation ? and space for applets sharable or each applet has it's own protected from other applets free space?


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 13, 2015 3:33 pm 
Offline

Joined: Fri Apr 10, 2015 10:36 pm
Posts: 14
Some answers for my questions have found here: viewtopic.php?f=33&t=1628#p6419

so there is only a few last:

1 - free space for PGP and PIV applets and if it shared or protected for each applet
2 - Can I use YubiOATH(it is U2F?) for sites that need Yubico OTP? (like this forum). Or how to get into here when I will delete Yubico OTP from slot 1?
3 - Can I use same HMAC-SHA1 CR for more then one PAM OS (like for 2-3 laptops)


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 15, 2015 9:01 am 
Offline

Joined: Fri Apr 10, 2015 10:36 pm
Posts: 14
Tom? Anybody? Please, just last few questions :)


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 15, 2015 12:00 pm 
Offline
Site Admin
Site Admin

Joined: Mon Dec 08, 2014 2:52 pm
Posts: 314
OATH is a separate set of standards from U2F
http://www.openauthentication.org/

No you cannot use U2f or OATH for this website, yet. As i explained below OTP and smartcard are 2 separate part of the same device. There are no configuration slot on the smartcard side ...OATH, PIV, OPENPGP neither for U2F is not going to "consume" a configuration slot.

And yes your Yubikey in HMAC SHA1 can be used on multiple machine, why it wouldn't ?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 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