Here's one way to do it (vista / windows 7 / windows 2008 server only).
Run this command line:
How to get the certificate hash / thumbrpint?
1. Run mmc and add the certificates snap-in.
2. Double click your certificate and see its thumbprint (hash):
3. Convert the base64 representation to Hex - this is the value you need.
Now in many cases you will want to do the installation dynamically at run time. This is as easy as: