17.07.2015 Views

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A – Views and Functions ReferenceUSE HomeLending;GOSELECT Cert_ID('MySelfSignedCert');GOListing A-10: Syntax of Cert_ID.CertPropertyA certification contains properties that are valuable for reference. Through thisfunction the following properties can be returned:• Expiry_Date: This is the date and time that the certificate is nolonger available for use.• Start_Date: This is the date and time that the certificate becomesavailable for use.• Issuer_Name: The X.509 standard identifies the issuer as the entitythat has verified the information within the certificate.• Cert_Serial_Number: The X.509 standard defines this number asthe value that uniquely identifies the certificate.• Subject: The X.509 standard defines the subject as the person orentity that is identified with the certificate.• Sid: The binary representation of the login security identifier for thecertificate.• String_Sid: The nvarchar representation of the login securityidentifier for the certificate.USE HomeLending;GOSELECT CertProperty(Cert_ID('MySelfSignedCert'),'Expiry_Date');GOListing A-11: Syntax of CertProperty.DecryptByAsymKeyThis function is used to decrypt data that has been encrypted with anasymmetric key. The user performing decryption will require CONTROLpermissions on the asymmetric key that is being referenced.211

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!