Gemstone Common Library
Show/Hide TOC

# CertificateGeneratorExportCertificateWithPrivateKey Method

Exports the private key of the certificate that is currently in use to the given path, encrypting the file with the given password.

## Definition

Namespace: Gemstone.Net.Security
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.143 -- Release Build+524337d392fd5616b12b50022b004322b9e7c330
C#
View Source Request Example

    public void ExportCertificateWithPrivateKey(
    	string exportPath,
    	SecureString password
    )

VB
View Source Request Example

    Public Sub ExportCertificateWithPrivateKey (
    	exportPath As String,
    	password As SecureString
    )

C++
View Source Request Example

    public:
    void ExportCertificateWithPrivateKey(
    	String^ exportPath,
    	SecureString^ password
    )

JavaScript
View Source Request Example

    function ExportCertificateWithPrivateKey(exportPath, password);

#### Parameters

exportPath String
  The path to which the certificate will be exported.
password SecureString
  The password used to encrypt the certificate file.

## See Also

#### Reference

CertificateGenerator Class
Gemstone.Net.Security Namespace