Certificate.AddPrivateKey Method (String, String, String)

 

Adds a private key to the certificate with the specified decryption and encryption passwords.

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

public void AddPrivateKey(
	string privateKeyPath,
	string decryptionPassword,
	string encryptionPassword
)

Parameters

privateKeyPath
Type: System.String

A String value that specifies the system path to the private key file.

decryptionPassword
Type: System.String

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

encryptionPassword
Type: System.String

A String value that specifies the encryption password for the private key.

Return to top
Show: