View Single Post
  #1 (permalink)  
Old 1 Week Ago
RRenu RRenu is offline
Junior Member
 
Join Date: May 2008
Posts: 1
RRenu is on a distinguished road
Error instaling certificate - .pfx file
I am trying to install a certificate (.pfx) from a VB script on Vista. This script in turn is invoked by installshield.

iStoreLocation = CAPICOM_LOCAL_MACHINE_STORE
strStoreName = "ROOT"
Dim Store, OpenMode, KeyStorageFlag
OpenMode = CAPICOM_STORE_OPEN_MAXIMUM_ALLOWED OR CAPICOM_STORE_OPEN_EXISTING_ONLY
KeyStorageFlag = CAPICOM_KEY_STORAGE_DEFAULT
Set Store = CreateObject("CAPICOM.Store")
' Open the store.
Store.Open iStoreLocation, strStoreName, OpenMode

' Import the certificate(s) to the store.
Store.Load strCertificateFile, strPassword, KeyStorageFlag

I encounter with 'Access denied' message in 'Store.Load'

If "current user store" is used instead of "Local Machine store" installation succeeds.


Any info regarding this will be appreciated.

RR
Reply With Quote