Certificate.AddPrivateKey Certificate.AddPrivateKey Certificate.AddPrivateKey Method

Definition

Adds a private key password to the certificate.

Overloads

AddPrivateKey(String, String) AddPrivateKey(String, String) AddPrivateKey(String, String)

Adds a private key to the certificate with the specified decryption password.

AddPrivateKey(String, String, String) AddPrivateKey(String, String, String) AddPrivateKey(String, String, String)

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

AddPrivateKey(String, String) AddPrivateKey(String, String) AddPrivateKey(String, String)

Adds a private key to the certificate with the specified decryption password.

public:
 void AddPrivateKey(System::String ^ privateKeyPath, System::String ^ decryptionPassword);
public void AddPrivateKey (string privateKeyPath, string decryptionPassword);
Public Sub AddPrivateKey (privateKeyPath As String, decryptionPassword As String)
Parameters
privateKeyPath
String String String

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

decryptionPassword
String String String

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

Examples

Using Encryption

AddPrivateKey(String, String, String) AddPrivateKey(String, String, String) AddPrivateKey(String, String, String)

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

public:
 void AddPrivateKey(System::String ^ privateKeyPath, System::String ^ decryptionPassword, System::String ^ encryptionPassword);
public void AddPrivateKey (string privateKeyPath, string decryptionPassword, string encryptionPassword);
Public Sub AddPrivateKey (privateKeyPath As String, decryptionPassword As String, encryptionPassword As String)
Parameters
privateKeyPath
String String String

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

decryptionPassword
String String String

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

encryptionPassword
String String String

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

Examples

Using Encryption

Applies to