VBScript Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



VBScript Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
PFX
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Email Object
POP3
SMTP
Byte Array
RSS
Atom

Unreleased...
Service
PPMD
Deflate
Bzip2
LZW
Bz2
DH Key Exchange
DSA
Icon

 

 

 

 

 

 

 

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.

Mail Component · XML Parser