Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

How do I check if a Digital signature is installed?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JeffP@Work - 30 Oct 2006 20:44 GMT
Is there a way to tell if my digital cert is installed ?

In a perfect world....

I've created a DigitalSig.doc, that when opening this (the behavior is
different for a template) from a shortcut I am prompted to enable or disable
macros and can see the Always trust from this source checkbox.

In the world that I actuall live in....

If a user bypasses the checkbox by selecting either Enable or Disable, then
they most likely have not added the Digital Sig.  If that's the case I'd
like to know, I'll update my Word fields to display the msg that they need
to close and re-open the doc and select the always trust.

TIA

JeffP...
Jonathan West - 03 Nov 2006 11:22 GMT
> Is there a way to tell if my digital cert is installed ?
>
[quoted text clipped - 10 lines]
> I'd like to know, I'll update my Word fields to display the msg that they
> need to close and re-open the doc and select the always trust.

Hi Jeff

The VBProject.Protection property of a document tells you whether the
project is loked for viewing.

The VBASigned property of a document tells you whether the VBA project is
digitally signed.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

JeffP@Work - 03 Nov 2006 15:47 GMT
>> Is there a way to tell if my digital cert is installed ?
>>
[quoted text clipped - 18 lines]
> The VBASigned property of a document tells you whether the VBA project is
> digitally signed.

Jonathan,

First off, it's nice to see this NG avaiable again.

VBProject.Protection: I don't belive that I'm not locking the project, so
this won't help.

VBASigned Property, I know that the document is signed, I signed it.

This doc, DigitalCert.dot has the digital cert that I use in the production
projects so that users and more importantly my unattended processes are not
paused and prompted that templates contain "our" macros, we know.

What I was looking for, was if our Digital Cert was installed on a users
computer, what I worked out was to save the Dot with a default field value
of "Please close and re-open....."  But if they enable macros, the macro
updates the merge field and then it thanks them for doing so. But if they
failed to choose the Always trust check box I have no real way of knowing
that they did or not.

{ if "{DocProperty "ResultMsg"}" = "Valid" "Thank you..." "Please Close and
re-open...." }

I think the only way is to read the regestry and look for our certificate in
the store.

I was hoping that as the "Trusted Sources" tab displays any certs from the
store I could access that collection and know for certain that it was or not
installed.

TIA

JeffP....
Jonathan West - 03 Nov 2006 19:08 GMT
> I think the only way is to read the regestry and look for our certificate
> in the store.

I believe you are correct.

> I was hoping that as the "Trusted Sources" tab displays any certs from the
> store I could access that collection and know for certain that it was or
> not installed.

As far as I'm aware, that list is not available through the object model.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.