Re: Loading pfx file to certificate store - WeOnlyDo Discussion board

Re: Loading pfx file to certificate store (General questions)

by Chris, Saturday, November 11, 2006, 17:17 (6376 days ago) @ wodDamir

Thanks.

Using the code, I want to check the OS store to see if my cert is already installed.

Dim location As CertLocation
Set location = New CertLocation

Dim cer As Certificate
Set cer = location(CurrentUser).Item( My ).Item( MyCert )

If cer.CommonName <> MyCert Then SomeRoutine....

If cert MyCert was in the OS store, I would have thought I could check its common name but all I get is an Object variable or with block not set

Any ideas on how to fix this?

Chris


Complete thread: