删除使用 Web 身份验证创建的凭据 API

Remove credentials created with Web Authentication API

有谁知道 Windows 你好 的安全凭证在哪里以及如何删除它们?

我正在使用 Web 身份验证实现身份验证 API,在处理代码时我创建了数百个凭据,我想以某种方式删除它们。

navigator.credential.get({ ... })

只需调用 get() 就需要一两分钟来加载所有这些并显示此对话框:

引自superuser.com

The Microsoft command line tool certutil can be used to view and delete these WebAuthN keys.

Disclaimer: it's very easy to delete the wrong key, so make sure that you are happy to accept the risk that you might delete the wrong key; there is no undo.

To view your WebAuthN keys, from a command prompt, run:

certutil -csp NGC -key

WebAuthN keys have names that look like //FIDO_AUTHENTICATOR//_

You need to identify the key that you want to delete, and then to delete a WebAuthN key, from an administrator command prompt, run:

certutil -csp NGC -delkey

自发提示,将 Chrome 与开发工具和模拟平台验证器一起使用:https://developer.chrome.com/docs/devtools/webauthn/