VBScript Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



VBScript Examples

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

More Examples...
Email Object
DKIM / DomainKey
NTLM
FileAccess
Byte Array
RSS
Atom
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

 

 

 

 

 

 

 

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

© 2000-2010 Chilkat Software, Inc. All Rights Reserved.

Mail Component · XML Parser