{% extends "device/addition-generic.html" %} {% load i18n %} {% load static_url %} {% block html_extra %}data-qa-id="yubikey_device_addition"{% endblock %} {% block device_instructions %}

{% trans "Shared OATH/HOTP key:" %}
{{ formatted_key }}

{% blocktrans %}Programming a YubiKey requires you to{% endblocktrans %} {% trans "install" %} yubikey-personalization.

{% blocktrans %}To program the YubiKey as an authentication device, on the short press of the YubiKey, execute the following command line:{% endblocktrans %}

sudo ykpersonalize -1 -a{{ hex_key|lower }} -ooath-hotp -oappend-cr

{% blocktrans %}To program the long press of the YubiKey, execute the following command line:{% endblocktrans %}

sudo ykpersonalize -2 -a{{ hex_key|lower }} -ooath-hotp -oappend-cr

{% blocktrans with "yubikey_personalize"|static_url as yubikey_personalize_url %} Warning: The YubiKey is shipped with a credential in the short-press slot; normally a credential for the YubiCloud. yubikey-personalization allows you to overwrite this credential. You cannot recover the credential once overwritten. For a YubiCloud credential, this means any services you have registered your YubiKey with will no longer recognise it. Please only overwrite the short-press credential if you understand the implications. See the Yubico website for more information.{% endblocktrans %}

{% endblock %}