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.156 -- Release Build+59006cef9614396d8b79971beebc1091829bcfe4
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