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.180 -- Release Build+914ca9e6d1cce46b614eb7013eba0303271cf6d8
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