A. Creating a self-signed certificate
The following example creates a certificate called Shipping04. The private key of this certificate is protected using a password.
other
USE AdventureWorks2008R2; CREATE CERTIFICATE Shipping04 ENCRYPTION BY PASSWORD = 'pGFD4bb925DGvbd2439587y' WITH SUBJECT = 'Sammamish Shipping Records', EXPIRY_DATE = '10/31/2009'; GO