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.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
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