Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Import PFX File VBScript 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
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2003-2007 Chilkat Software, Inc. All Rights Reserved.