Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new tab "Backup/Restore" #43

Closed
onlykey opened this issue Dec 30, 2016 · 2 comments
Closed

Add new tab "Backup/Restore" #43

onlykey opened this issue Dec 30, 2016 · 2 comments

Comments

@onlykey
Copy link
Collaborator

onlykey commented Dec 30, 2016

Backup

Step 1. To begin backup ensure that you have a backup key set (in the keys tab) and that you have an offline copy of this backup key. The same key that you use to backup your OnlyKey will be required to restore your OnlyKey.

Step 2. Click inside the box with your mouse and then hold the #1 button down on your OnlyKey for 5 seconds or more and then release. This will type out a backup of your OnlyKey slots and keys into the box.

Step 3. Once you see "-----END ONLYKEY KEY BACKUP-----" the backup of the OnlyKey slots and keys is complete. Select "Save file as" to save your encrypted backup to a secure location.

Restore

Step 1. In order to restore a backup file to your OnlyKey ensure you have loaded the same key you used to create the backup and set the key as backup the key. Also make sure your OnlyKey is unlocked and plugged in.

Step 2. Hold the #6 button down on your OnlyKey for 5 seconds or more and then release. The light will turn off on your OnlyKey and you must re-enter your PIN to unlock device into config mode. Open your backup file and select "Restore to OnlyKey".

Step 3. When you see the messages "Successfully loaded backup file" and "Remove and Reinsert OnlyKey to complete restore" the restore is complete. Remove and reinsert OnlyKey to complete restore.

@onlykey
Copy link
Collaborator Author

onlykey commented Jan 24, 2017

@rodgolpe Some more detail on the backup/restore tab. As mentioned above we have 3 step instructions for backup and for Restore. We could have the left side of the page have the Backup instructions, a text entry box where the OnlyKey will type out the backup, and a save as button to save the text file. On the right side we have the Restore instructions and a file box to select a backup file from the user's computer to restore. The backup file is already in a format where each line is 56 characters, the app just needs to parse and send these packets just like we do the OKSETU2F Cert packets -

@rodgolpe
Copy link
Contributor

rodgolpe commented Feb 7, 2017

This has been implemented in branch https://github.com/trustcrypto/OnlyKey-Chrome-App/tree/backup-restore.

A couple of notes:

  1. The restore success messages are not coming from the firmware; I simply output "Done!" when all the packets have been sent.
  2. I cannot implement a proper "File save as..." dialog where the user can choose a file location or filename. We could add another text input for the filename, but choosing a file location doesn't seem to be possible in pure javascript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants