- From: Craig Francis via GitHub <sysbot+gh@w3.org>
- Date: Wed, 16 Dec 2020 16:44:38 +0000
- To: public-webauthn@w3.org
@greenpau, have a look at the new-ish [getPublicKey()](https://www.w3.org/TR/webauthn-2/#dom-authenticatorattestationresponse-getpublickey) method, where the browser returns the value in DER format (not quite PEM, but [it's easy to convert](https://github.com/craigfrancis/webauthn-tidy/blob/main/new/check.php#L126)). I've also got a basic polyfill for browsers that don't support this new method ([discussion](https://github.com/w3c/webauthn/issues/1363#issuecomment-661021632)). Alternatively, my "[webauthn-tidy](https://github.com/craigfrancis/webauthn-tidy/)" repo includes 3 implementations: - "[new](https://github.com/craigfrancis/webauthn-tidy/tree/main/new)" shows my (fairly un-tested) polyfill in use; - "[tidy](https://github.com/craigfrancis/webauthn-tidy/tree/main/tidy)" is how I'm currently using WebAuthn (JS doing as much work as possible, to tidy up the API); - "[html](https://github.com/craigfrancis/webauthn-tidy/tree/main/html)" you can ignore (I was experimenting how a browser could do all of this with HTML elements only, the JS is filling in what the browser could do automatically). -- GitHub Notification of comment by craigfrancis Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1362#issuecomment-746609981 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 16 December 2020 16:44:40 UTC