Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Import PFX FileVBScript to import certificates and private keys from a PFX file.
set pfx = CreateObject("ChilkatPfx.ChilkatPfx")
' Any value passed to UnlockComponent begins the 30-day trial.
pfx.UnlockComponent "30-day trial"
' The private keys are stored under local computer and not the current user.
useMachineKeyset = 1
' The certificate(s) are placed in the local machine store.
useLocalMachineCertStore = 1
'Imported keys are marked as exportable.
markAsExportable = 1
' The user is to be notified through a dialog box or
' other method when certain actions are attempting to use this key. The precise
' behavior is specified by the cryptographic service provider (CSP) being used.
wantWarningDialog = 0
success = pfx.ImportPfxFile("c:/temp/myPfx.pfx","myPassword",useMachineKeyset, useLocalMachineStore, markAsExportable,wantWarningDialog)
if (success = 0) then
MsgBox pfx.LastErrorText
else
MsgBox "Imported PFX!"
end if
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.