Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««56789»»

Transparent Data Encryption (TDE) SQL Server 2008 Expand / Collapse
Author
Message
Posted Monday, October 18, 2010 6:41 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, November 14, 2014 12:37 PM
Points: 2,361, Visits: 6,752
Thanks Tom. I tried to do that and I guess I succeeded.

-Roy
Post #1006172
Posted Tuesday, November 16, 2010 1:48 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, April 29, 2014 2:29 PM
Points: 7, Visits: 95
Hello, Roy,
The TDE works fine on SQL Server 2008 R2 for me.
Now I am trying to use SQL Audit in SQL Server 2008.
Everything is working but the Audit log date somehow is different from the SQL Sever or Windows System date. For example, the current date is 11/16/2010 3:48 PM but the Audit log date displays as 11/16/2010 8:48 PM.
Do you have any idea?

Thanks a lot for your help in advance.

Eric
Post #1021776
Posted Wednesday, November 17, 2010 5:02 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, November 14, 2014 12:37 PM
Points: 2,361, Visits: 6,752
Do you by any chance have any time zone difference? TDE should not have any issues with Auditing. But I have heard that Auditing can have issues with replication.

-Roy
Post #1022073
Posted Wednesday, November 17, 2010 8:55 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, April 29, 2014 2:29 PM
Points: 7, Visits: 95
Thanks Roy.
We are in Eastern Time zone.
I think the time zone is not a problem.
The problem is that the SQL Audit event log time is different from the Server current date.
It is applying to SQL Audit alone. Nothing to do with TDE.

Thanks,

Eric
Post #1022215
Posted Thursday, November 18, 2010 6:23 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:35 AM
Points: 7,874, Visits: 9,613
Eric Min (11/17/2010)
Thanks Roy.
We are in Eastern Time zone.
I think the time zone is not a problem.
The problem is that the SQL Audit event log time is different from the Server current date.
It is applying to SQL Audit alone. Nothing to do with TDE.

Thanks,

Eric

Eastern Time Zone? As in UTC-5? And 3:48 server time is 8:48 SQL Audit Log time according to your earlier post. That looks as if the SQL audit event log time is UTC time while the Server current date is Easter Time.

I used to get awfully bored explaining to people that the default IIS log format used UTC even in India, and even in the summer in the UK. Don't know if SQL Server Audit logging does the same.


Tom
Post #1022831
Posted Thursday, November 18, 2010 6:54 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, November 14, 2014 12:37 PM
Points: 2,361, Visits: 6,752
Thanks for chiming in Tom. I do not have much clue about Auditing. This could explain the time difference.


-Roy
Post #1022868
Posted Thursday, November 18, 2010 8:41 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, April 29, 2014 2:29 PM
Points: 7, Visits: 95
Thanks Tom & Roy,

I am in (UTC-05:00) Eastern Time (US & Canada) time zone.
The SQL Audit log is written to a text file by SQL Server.
What do I need to do to get the correct date / time to log into the SQL Audit text file?
There is no IIS installed on the server by the way.

Thanks a lot,

Eric
Post #1022971
Posted Friday, November 19, 2010 6:15 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 20, 2014 12:01 AM
Points: 2, Visits: 132
Hello,

I followed this article and everything went fine untill I tried to create the certificate on the second instance.
(Both instances on the same server both with different windows users as service accounts)

USE [master]
GO
CREATE CERTIFICATE TDECertificate
FROM FILE = 'E:\MSSQL10.MSSQLSERVER\MSSQL\Backup\Certificate_EncryptionKey\TDECertificate.cert'
WITH PRIVATE KEY (
FILE = 'E:\MSSQL10.MSSQLSERVER\MSSQL\Backup\Certificate_EncryptionKey\TDE_Certificate_DYNAMICS.key',
DECRYPTION BY PASSWORD = ‘xxxxxxxx’)

I get the following:

The certificate, asymmetric key, or private key file does not exist or has invalid format.

My server OS is Windows 2008 R2.
Sql version 2008 R2

Eventually I found that the service account of the second SQL instance received a "access denied" error on the "certificate" and private key" files. Giving the service account of the second instance full control NTFS rights on this files fixed my problem. (Maybe read only rights would have been enough.)

Cheers.
Post #1023459
Posted Friday, November 19, 2010 6:35 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, November 14, 2014 12:37 PM
Points: 2,361, Visits: 6,752
Thank You for posting the issue and the way you solved it. It will help others if they encounter this problem.

-Roy
Post #1023476
Posted Wednesday, April 13, 2011 3:51 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, November 8, 2012 4:57 PM
Points: 1, Visits: 42
The solution for disabling TDE is pretty simple. After running the ALTER DATABASE command, and allowing time for the database to decrypt, you simply need to run the DROP DATABASE ENCRYPTION KEY command in the database in question. The database can then be restored onto another server without the certificate.
Post #1093228
« Prev Topic | Next Topic »

Add to briefcase «««56789»»

Permissions Expand / Collapse