5/13/2023 0 Comments Yubikey 5c nfc iphoneThe first choice would be to create a custom URL scheme for our app and let the extension open that. The CTK extension is part of our application, but it’s actually started from browsers such as Safari. Opening the main application from the extension. This points to a solution where both NFC and Lightning communication with the YubiKey is handled by the main app. Since NFC is not available in the CTK extension, the only way to communicate with a NFC YubiKey is via the main app which gives us full control over the UI to display error messages in a proper way. iOS keeps track of linking client certificates to apps and their embedded CTK extensions. It’s then up to the extension to figure out which private key to use, sign the data, and pass the signature back. The delegate method in the extension provides the public part of the client certificate to be used. In our use case the CTK extension will get a request to sign a piece of data. How does the CryptoTokenKit extension work? They can, however, access shared resources such as files and Keychain Access Groups. The extension and the main app run as separate processes and don’t share any memory. This is crucial since we want to support both YubiKeys with a Lightning connector, as well as NFC enabled keys.īefore we dive much further, let’s dive into an overview of iOS extensions and CTK extensions:Įxtensions are embedded into the main application and in Xcode they are configured as separate targets. It will not display any error messages if the user enters the wrong PIN code – it will just display the PIN input dialog again.Ī lack of NFC support in the CTK extension itself. The CTK extension itself has a few limitations making it difficult to deliver a good user experience, including: Searching the Internet gives very few clues and the documentation covering Apples CTK is pretty terse. One key feature we haven’t covered yet is how we implemented the CryptoTokenKit extension needed for this functionality.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |