使用一次性密码(OTP)的双因素认证¶
Compatible Nitrokeys |
|||||||
|---|---|---|---|---|---|---|---|
✓ active |
⨯ inactive |
⨯ inactive |
✓ active |
⨯ inactive |
✓ active |
⨯ inactive |
⨯ inactive |
一次性密码(OTP)的使用在支持它的各种服务中的称呼非常不同。有时它被称为多因素认证(MFA),有时是双因素认证(2FA),或者只是 "通过认证器应用程序认证",如谷歌认证器。这些服务大多与硝基钥匙专业版和硝基钥匙存储版兼容使用。下面的说明显示了如何在我们的`支持论坛<https://support.nitrokey.com/>`__启用OTP。这个过程在大多数服务上都很相似。关于支持OTP的网站列表,请看`dongleauth.com <https://www.dongleauth.com/>`__。
备注
对于 Nitrokey 3,必须使用 Nitrokey App 2 设置 TOTP。请参阅 硝基钥匙应用程序2 。
你需要安装`Nitrokey应用程序<https://www.nitrokey.com/download>`__来使用Nitrokey Pro和Nitrokey Storage的OTP功能。
配置一个网站/应用程序以使用OTP¶
登录支持OTP的网站(本例中,`支持论坛<https://support.nitrokey.com/>`__)。通常情况下,你可以在你的个人资料或设置中找到启用双因素认证的选项。
大多数时候,你会得到一个QR码,如下图所示。应该有一个选项,可以直接显示密匙。
我们需要复制秘密代码。
This is what the Nitrokey is actually protecting. You may create a backup of it now (in case the Nitrokey get lost or breaks) by writing it down on a sheet of paper and storing it securely. But be aware that anybody who is in possession of this secret code, can create one-time passwords for your account! Please note that you won't be able to backup this code, once it is stored in the Nitrokey!
现在启动Nitrokey应用程序并打开 "OTP插槽配置"。
Paste in the secret key in the corresponding field and choose an appropriate slot name. Click on “Save” and type in your admin PIN if requested.
保存插槽后,你可以到 "菜单"-> "密码"->YourSlotName获得你的第一个一次性密码。
一次性密码会自动复制到你的剪贴板上。你只需要把它粘贴到网站上的字段,以确认正确的设置,从而激活双因素认证。
安全登录到网站/应用程序¶
From now on you will get asked for a one-time password additionally to your other credentials if you try to login the website. You just need to open the Nitrokey App and go to “Menu” -> “Passwords” -> YourSlotName again to get the one-time password.