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.163 -- Release Build+087b6813ba03894bf4bfe2466a2a63a9702d9bb9
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