Encryption keys are used to encrypt data entries (connections, user vault, documentation, and attachments). They are generated and stored in the encryption.config file on the server only. To encrypt the data stored in the database, we use our open-source cryptography library.
We recommend to do a backup of the SQL database before any operation that could modify the information it contains (Import or Regenerate). During this operation, all users must be in offline mode or disconnected from the Devolutions Server data source to avoid data loss.
The encryption.config file cannot be moved to another system, as it is encrypted with the data protection application programming interface (DPAPI), which prevents the file from being read outside of the system where it has been encrypted. You must export the file then import it to the other system.
Encryption keys must be the same as each Devolutions Server instance of your High Availability/Load Balancing Topology that are using the same SQL database or for a migration operation.
Export the encryption keys
-
Open the Devolutions Server Console.
-
In the Tools tab, click on Export.
-
Enter a destination Filename and path, then set a password to protect the file.
We strongly recommend storing the encryption keys file in a secure storage outside of Devolutions Server such as Devolutions Hub Business, Azure Key Vault, or AWS Key Management Service.
-
Click OK.
Your encryption keys have been exported to the specified destination.
Import the encryption keys
- Open the Devolutions Server Console on the server.
- In the Tools tab, click on Import.
- Select the encryption keys file, then enter the password.
- Click OK.
Once the operation is completed, the new encryption keys have been applied on the data of the database.
Regenerate the encryption keys
The Regenerate operation will alter and re-encrypt the inner data of the Devolutions Server SQL database. This operation must be treated with the utmost care.
There may be scenarios where you need to regenerate the encryption keys, such as if you suspect that your database has been breached. The following instructions explain how to complete this operation.
-
Make a full database backup and ensure this backup is fully operational.
-
Make a backup of the Devolutions Server web application folder.
-
Export the existing encryption keys. See export steps above.
-
In the Server tab, switch the Devolutions Server instance to offline mode using the Go Offline button.
-
In the Tools tab, click on Regenerate.
-
Enter a destination Filename and path, then set a password to protect the file.
We strongly recommend storing the encryption keys file in a secure storage outside of Devolutions Server such as Devolutions Hub Business, Azure Key Vault, or AWS Key Management Service.
-
Click OK.
-
A last warning appears before launching the regeneration process. Click OK again to proceed. The process begins. When done, the status will update to say that the operation is completed.
-
If errors occur during the regeneration process, please follow these instructions to recover the previous state of the Devolutions Server instance.