Chilkat .NET Pfx Class Reference (VB.NET)

Chilkat.Pfx

Advertisement

Reference Index
Chilkat Home
Example Programs

Properties

LastErrorHtml
LastErrorText
LastErrorXml

Methods

ImportPfxBytes
ImportPfxFile
SaveLastError
UnlockComponent

Properties

LastErrorHtml As String (ReadOnly)

Error information in HTML format for the last method called.

LastErrorText As String (ReadOnly)

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

LastErrorXml As String (ReadOnly)

Error information in XML format for the last method called.

Methods

Function ImportPfxBytes(ByVal data As Byte(), ByVal password As String, ByVal bMachineKeyset As Boolean, ByVal bLocalMachineCertStore As Boolean, ByVal bExportable As Boolean, ByVal bUseWarningDialog As Boolean) As Boolean

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

Returns true for success, false for failure.

Function ImportPfxFile(ByVal filename As String, ByVal password As String, ByVal bMachineKeyset As Boolean, ByVal bLocalMachineCertStore As Boolean, ByVal bExportable As Boolean, ByVal bUseWarningDialog As Boolean) As Boolean

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.

Function SaveLastError(ByVal filename As String) As Boolean

Saves the last error information to an XML formatted file.

Function UnlockComponent(ByVal unlockCode As String) As Boolean

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.