Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Is there any way to import file on Yubico security #7

Open
SirMishaa opened this issue Jul 11, 2020 · 3 comments
Open

Is there any way to import file on Yubico security #7

SirMishaa opened this issue Jul 11, 2020 · 3 comments

Comments

@SirMishaa
Copy link

SirMishaa commented Jul 11, 2020

Hello,

I would like to import all my otpauth on my Security Key (yubikey 5ci).

Is there any automatic method for doing this ?

(I used the script and it works well, but maybe it's possible to load directly into the Security Key with kind of api)

@alexzorin
Copy link
Owner

alexzorin commented Jul 11, 2020

I've done a little reading about YubiKey Authenticator, and I believe you should be able to use the ykman command.

$ ykman oath uri "otpauth://totp/Example:[email protected]?secret=JBSWY3DPEHPK3PXP&issuer=Example"
$ ykman oath list
Example:[email protected]

I don't use my Yubikey for TOTP (only for U2F), but maybe you can try modify the script in the README to do something like:

ykman oath uri "$line"

instead of displaying it as a QR code.

If it works for you, I could add it to the README.

@SirMishaa
Copy link
Author

Thanks, I'll try and I come back to you if it's works.

@nemchik
Copy link

nemchik commented Jun 29, 2022

In case anyone finds this in the future, Yubikey 5 series devices only support up to 32 credentials.
https://support.yubico.com/hc/en-us/articles/4404456942738-FAQ#what-is-the-yubikey-s-account-limit-
If you have more than that number of credentials I believe you would need to use multiple yubikey devices, or consider using something else altogether.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants