Export (0) Print
Expand All

Certificate.Create Method (String, CertificateSourceType, String, 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,
	string privateKeyEncryptionPassword
)

Parameters

certificateSource
Type: 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: String
A String value that specifies the system path for the private key.
privateKeyDecryptionPassword
Type: String
A String value that specifies the password used for decryption of the private key.
privateKeyEncryptionPassword
Type: String
A String value that specifies the password used for encryption of the private key.

Community Additions

ADD
Show:
© 2014 Microsoft