SQL Server 2005 create certificate with private key / encryption -
Well, my problem is I SQL Server 2005 using a DB master key, certificate and symmetric key I am data encryption. I should be able to restore a certificate with a private key, but when I pulled the triggers certificate with the private key, then you certificate DB, but do not see the private key. I am doing the following steps for testing.
Create database master keys.
password Word = "12345 Create Master Key by 'Encryption Create Certificate
Certificate with Maikret subject = 'My first certificate', EXPIRY_DATE = '1/1/2199'; Create a symmetric key encrypted with MyCert.
Encrypt with MySimmetricKEY ALGORITHM = AES_256 certificate by MyCert Select the statements to show the commands and queues given below. They are Master DB keys, symmetric keys and certificates are everything.
select from the Select sys.symmetric_keys sys.certificates Create a backup of the backup database certificate and key
Note I have tried to put them in the same folder and that too is not working. Backup certificate MyCert the FILE = 'C: \ SQLDatabase \ MyCert \ MyCert.cert' with the private key (FILE = 'C: \ SQLDatabase \ MyKey \ MySymmetricKey.key', Password Encryption via word = '12345') Drop the key and proof and verify that they have gone.
Drop Simmotic Keys MySimmetricKey Drop Certification MyCert; There is no reinstallation for the certificate, only made by the file. I prepare the certificate with the private key together.
When I run it shows the certificate but the key does not come with it.
I have verified that they are in the folder and access to folders in SQL.
I have tried alternative certificates with the private key and there is still nothing.
What am I missing?
create certificate payloadbirdrate with FILE = 'C: \ SQLDatabase \ MyCert \ MyCert.cert' with private key (FILE = 'C: \ SQLDatabase \ MyKey \ MySymmetricKey.key', password word = select by '12345' * Symmetric_keys from Dikripisn) * select
In your example, you drop a symmetric key but do not recreate it again.
Then restore the symmetric key again again.
Just a note: The password used to protect the backup certificate is not the same password which is used to encrypt the private key of the certificate.
Let us know that he resolves your problem
Comments
Post a Comment