Home
Microsoft SQL Server
  - System tables
  - Procedure
    - Change Data Capture
    - Constraints
    - Files & folders
    - Fulltext (EFTS)
    - Index
    - Login & Users
    - OleDb
    - Oracle
    - Replication
    - Scripting
    - Server
    - Spatial geo
    - SQL Server Agent
    - Transaction
    - Trigger
    - XML
    - Uncategorized
  - Views
    - DMV
  - Functions
DigiMailing
Contact
The name of the object you are looking for
certificates

This is a view in the mssqlsystemresource database.
CREATE VIEW sys.certificates AS
	SELECT c.name,
		c.id AS certificate_id,
		r.indepid AS principal_id,
		c.encrtype AS pvt_key_encryption_type,
		ce.name AS pvt_key_encryption_type_desc,
		sysconv(bit, ~c.status & 0x1) AS is_active_for_begin_dialog,
		convert(nvarchar(442), certproperty(c.id, 'issuer_name')) AS issuer_name,
		convert(nvarchar(64),  certproperty(c.id, 'cert_serial_number')) AS cert_serial_number,
		convert(varbinary(85), certproperty(c.id, 'sid')) AS sid,
		convert(nvarchar(128), certproperty(c.id, 'string_sid')) AS string_sid,
		convert(nvarchar(4000),certproperty(c.id, 'subject')) AS subject,
		convert(datetime, certproperty(c.id, 'expiry_date')) AS expiry_date,
		convert(datetime, certproperty(c.id, 'start_date')) AS start_date,
		c.thumbprint AS thumbprint,
		convert(nvarchar(260), v.value) AS attested_by,
		c.lastpkeybackup AS pvt_key_last_backup_date
	FROM sys.syscerts c
	LEFT JOIN sys.syssingleobjrefs r ON r.depid = c.id AND r.class = 62 AND r.depsubid = 0	-- SRC_CERTOWNER
	LEFT JOIN sys.syspalnames ce ON ce.class = 'CETY' AND ce.value = c.encrtype
	LEFT JOIN sys.sysobjvalues v ON v.valclass = 33 AND v.objid = c.id AND v.subobjid = 0 AND v.valnum = 0	-- SVC_CRATTESTINGDLLPATH
	WHERE has_access('CE', c.id) = 1

Questions

Feel free to contact.
Email answer to
Question

Type this code
See also

sp_MSrepltrigcertgrant (Procedure)
sp_MSrepltrigpreparecert (Procedure)
sp_MSrepltrigredefine (Procedure)
sp_MSrestore_sub (Procedure)
sp_link_publication (Procedure)
sp_unlink_publication_internal (Procedure)

Nieuws

Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash