
Restoring the Encryption Keys
Restoring the symmetric key overwrites the existing symmetric key that is stored in the report server database. Restoring an encryption key replaces an unusable key with a copy that you previously saved to disk. Restoring encryption keys results in the following actions:
-
The symmetric key is opened from the password protected backup file.
-
The symmetric key is encrypted using the public key of the Report Server Windows service.
-
The encrypted symmetric key is stored in the report server database.
-
The previously stored symmetric key data (for example, key information that was already in the report server database from a previous deployment) is deleted.
To restore the encryption key, you must have a copy of the encryption key on file. You must also know the password that unlocks the stored copy. If you have the key and the password, you can run the Reporting Services Configuration tool or rskeymgmt utility to restore the key. The symmetric key must be the same one that locks and unlocks encrypted data currently stored in the report server database. If you restore a copy that is not valid, the report server cannot access the encrypted data currently stored in the report server database. If this occurs, you might need to delete all encrypted values if you cannot restore a valid key. If for some reason you cannot restore the encryption key (for example, if you do not have a backup copy), you must delete the existing key and encrypted content. For more information, see Deleting and Re-creating Encryption Keys. For more information about creating symmetric keys, see Initializing a Report Server.
How to restore encryption keys (Reporting Services Configuration Tool)
-
Start the Reporting Services Configuration tool, and then connect to the report server instance you want to configure.
-
On the Encryption Keys page, click Restore.
-
Select the .snk file that contains the back up copy.
-
Type the password that unlocks the file.
-
Click OK.
How to restore encryption keys (rskeymgmt)
-
Insert the diskette that contains the backup copy of the encryption key.
-
Run rskeymgmt.exe locally on the computer that hosts the report server. Use the -a argument to restore the keys. You must provide a fully-qualified file name and specify a password. The following example illustrates the arguments you must specify:
rskeymgmt -a -f a:\rsdbkey.snk -p<password>