We help IT Professionals succeed at work.

View Outlook Certificates through VBA

Dennis Hancy
Dennis Hancy asked
on
141 Views
Last Modified: 2017-11-06
Within Outlook, I can navigate through a number of screens to eventually see the Certificate Properties screen for a single user.

Selecting the Details tab and choosing the Subject field, it displays these lines:

CN=
OU=
O=
C=

Each is followed by a specific value.

Using VBA code, how can I read the values that are displayed here?

I read somewhere these may be stored in the Global Address List (GAL), so I am including those words too just in case.

Thanks!


Dennis
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2011

Commented:
Try the Office.SignatureProviderDetail
or try this code
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Msg = Session.GetMessageFromId(Application.ActiveExplorer.Selection(1).EntryId)
if TypeName(Msg) = "RDOEncryptedMessage" Then
  MsgBox Msg.SignedByName
End If

Open in new window

Author

Commented:
Thanks for the reply.

I tried this, but it gives me this message:

-------
Run-time error '429':
ActiveX component can't create object
-----
CERTIFIED EXPERT
Top Expert 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.