Fixing encryption error

nRF Connect for Desktop

tags
nRF Connect for Desktop

When you set a token, the launcher might reject it with the following error:

Token rejected with the Encryption not available error

This error means that nRF Connect for Desktop cannot access the safe storage of your operating system and encrypt the token. This can happens, for example, when you denied the access in step 3 of Setting a token or when your operating system has no supported secret storage available.

To fix this error, complete the following steps:

  1. Make sure that the safe storage is available on your operating system:

    • On Linux, install GNOME Keyring and the libsecret libraries by running the following command:

      sudo apt install gnome-keyring libsecret-1-0 libsecret-tools
      
    • On macOS, the safe storage is the built-in Keychain, so you do not need to install anything. If your login keychain is locked, unlock it by running the following command:

      security unlock-keychain ~/Library/Keychains/login.keychain-db
      
    • On Windows, the safe storage is built into the operating system, so this error is not expected. If it occurs, contact your Nordic Semiconductor representative or open a ticket on DevZone.

  2. Restart nRF Connect for Desktop.

  3. If prompted about using confidential information from safe storage, allow the access.
  4. Set the token again.