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.152 -- Release Build+1bdd5395ab91a1a698659399697f8334859b02d2
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