TechNet
Export (0) Print
Expand All

Certificate.Create Method (String, CertificateSourceType, String, String)

 

Creates a certificate on the database that has the specified certificate source type.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public void Create(
	string certificateSource,
	CertificateSourceType sourceType,
	string privateKeyPath,
	string privateKeyDecryptionPassword
)

Parameters

certificateSource
Type: System.String

A String value that specifies the source of the certificate.

sourceType
Type: Microsoft.SqlServer.Management.Smo.CertificateSourceType

A CertificateSourceType object value that specifies the certificate source type.

privateKeyPath
Type: System.String

A String value that specifies the system path for the private key.

privateKeyDecryptionPassword
Type: System.String

A String value that specifies the password used for decryption of the private key.

Return to top
Show:
© 2016 Microsoft