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.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
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