February 2, 2010 at 3:47 pm
Hi,
I'm trying to explore the Transparent Data Encryption (TDE) feature of SQL Server 2008 and I ran the below query. Now from where & how I can backup the CERTIFICATE and PRIVATE KEY ASSOCIATED WITH THE CERTIFICATE
USE master;
GO
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'xxxxxxx';
go
CREATE CERTIFICATE MyServerCert WITH SUBJECT = 'My DEK Certificate'
go
USE AdventureWorks
GO
CREATE DATABASE ENCRYPTION KEY
WITH ALGORITHM = AES_128
ENCRYPTION BY SERVER CERTIFICATE MyServerCert
GO
ALTER DATABASE AdventureWorks
SET ENCRYPTION ON
GO
Result:
Warning: The certificate used for encrypting the database encryption key has not been backed up. You should immediately back up the certificate and the private key associated with the certificate. If the certificate ever becomes unavailable or if you must restore or attach the database on another server, you must have backups of both the certificate and the private key or you will not be able to open the database.
thanks
February 2, 2010 at 10:53 pm
February 3, 2010 at 12:28 am
BACKUP CERTIFICATE MyServerCert
TO FILE = 'C:\MyServerCert.backup'
WITH PRIVATE KEY (FILE = 'C:\MyServerCert_PrivateKey.backup',
ENCRYPTION BY PASSWORD = 'xxxxxxx');
GO
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply