ChilkatPfx ActiveX Reference (Visual Basic)

ChilkatPfx

Advertisement

Reference Index
Chilkat Home
CreateObject
Example Programs

Properties

LastErrorHtml
LastErrorText
LastErrorXml

Methods

ImportPfxFile
SaveLastError
UnlockComponent

Properties

LastErrorHtml As String (read-only)

Error information in HTML format for the last method called.

LastErrorText As String (read-only)

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

LastErrorXml As String (read-only)

Error information in XML format for the last method called.

Methods

ImportPfxFile(pfxFilename As String, password As String, machineKeyset As Long, localMachineCertStore As Long, markExportable As Long, useWarningDialog As Long) As Long

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 1 for success, 0 for failure.

SaveLastError(filename As String) As Long

Saves the last error information to an XML formatted file.

UnlockComponent(unlockCode As String) As Long

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

Returns 1 for success, 0 for failure.

Copyright 2000-2006 Chilkat Software, Inc.