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.155 -- Release Build+a7d8ba87ff92af3282fc68a6fbfd37a854100b44
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