Chilkat .NET Pfx Class Reference (C#)

Chilkat.Pfx

Reference Index
Chilkat Home
Example Programs

Properties

LastErrorHtml
LastErrorText
LastErrorXml

Methods

ImportPfxBytes
ImportPfxFile
SaveLastError
UnlockComponent

Properties

public string LastErrorHtml {get; }

Error information in HTML format for the last method called.

public string LastErrorText {get; }

Error information in plain-text format for the last method called.

public string LastErrorXml {get; }

Error information in XML format for the last method called.

Methods

public bool ImportPfxBytes(byte [] data, string password, bool bMachineKeyset, bool bLocalMachineCertStore, bool bExportable, bool bUseWarningDialog);

Same as ImportPfxFile except that the PFX is loaded from an in-memory byte array.

Returns true for success, false for failure.

public bool ImportPfxFile(string filename, string password, bool bMachineKeyset, bool bLocalMachineCertStore, bool bExportable, bool bUseWarningDialog);

Imports the certificate(s) and private key(s) contained within a PFX file onto the computer. If the "machine keyset" argument is true, the private keys are stored under local computer and not the current user. If the "local machine cert store" argument is true, the certificates are saved in the local machine certificate store. If the "exportable" argument is true, the private keys are marked as exportable. If the "use warning dialog" argument is true, the user is to be notified through a dialog box or other method when certain actions are attempting to use the private key. The precise 'behavior is specified by the cryptographic service provider (CSP) being used.

Returns true for success, false for failure.

public bool SaveLastError(string filename);

Saves the last error information to an XML formatted file.

public bool UnlockComponent(string unlockCode);

Unlocks the component. This must be called once prior to using the component.

Returns true for success, false for failure.

Copyright 2000-2006 Chilkat Software, Inc.