Skip to content

Enroll YubiKey 5 Nano/NFC #1

@mikeschmt

Description

@mikeschmt

Hello,

My configuration:
OS: Mac OSX Mojave 10.14.6
Python: Python 3.8

I installed this repo and python-yubico repo for configure my YubiKey 5 Nano and YubiKey 5 NFC on my LinOTP Server.

But, when I want enroll my keys with linotpadm cli, I have this error:

`[10:14:07] mike@MacBook-Pro-de-Mickael:~/Documents/Softs/LinOTP$ linotpadm -U https://uri --admin=admin --password XXXXXXXXXX -C yubikey_mass_enroll --yubimode=YUBICO --yubislot=1

Thank you for running the LinOTP2 linotpadmin client

Please insert the next yubikey. uuuuuu...........
Found Yubikey with serial 'XXXXXXX'

Traceback (most recent call last):
File "/usr/local/bin/linotpadm", line 33, in
sys.exit(load_entry_point('LinOTPAdminClientCLI==3.0.dev0', 'console_scripts', 'linotpadm')())
File "/usr/local/lib/python3.8/site-packages/LinOTPAdminClientCLI-3.0.dev0-py3.8.egg/linotpadminclientcli/cli.py", line 653, in main
File "/usr/local/lib/python3.8/site-packages/LinOTPAdminClientCLI-3.0.dev0-py3.8.egg/linotpadminclientcli/cli.py", line 224, in yubi_mass_enroll
File "/usr/local/lib/python3.8/site-packages/LinOTPAdminClientCLI-3.0.dev0-py3.8.egg/linotpadminclientcli/yubikey.py", line 142, in enrollYubikey
TypeError: can only concatenate str (not "bytes") to str`

I tried with empty slot or OATH/Yubico OTP on 2 slots ...

I do configure Yubikey token before with Yubico Manager or the linotp cli configure token on YubiKey ?

Thanks you in advance,

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions