Gemstone Common Library
Show/Hide TOC

# CertificateGeneratorImportCertificateWithPrivateKey Method

Imports the given certificate into the current user store and then exports the public key.

## Definition

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

    public void ImportCertificateWithPrivateKey(
    	string importPath,
    	SecureString password
    )

VB
View Source Request Example

    Public Sub ImportCertificateWithPrivateKey (
    	importPath As String,
    	password As SecureString
    )

C++
View Source Request Example

    public:
    void ImportCertificateWithPrivateKey(
    	String^ importPath,
    	SecureString^ password
    )

JavaScript
View Source Request Example

    function ImportCertificateWithPrivateKey(importPath, password);

#### Parameters

importPath String
  The file with the certificate and private key to be imported.
password SecureString
  The password used to encrypt the certificate file with the private key.

## See Also

#### Reference

CertificateGenerator Class
Gemstone.Net.Security Namespace