Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CREATE DATABASE QuickTest
GO
USE QuickTest;
GO
CREATE CERTIFICATE SelfSignedCertificate
ENCRYPTION BY PASSWORD = 'helloiamapassword123'
WITH SUBJECT = 'Self Signed Cert Test',
EXPIRY_DATE = '20900101';
GO
CREATE SYMMETRIC KEY SymmetricKeyHiHi
WITH ALGORITHM = AES_256
ENCRYPTION BY CERTIFICATE SelfSignedCertificate;
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment