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.143 -- Release Build+524337d392fd5616b12b50022b004322b9e7c330
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