NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Set Registry Utility (setreg.exe)

Setreg (the Set Registry utility) changes registry settings for public key cryptography.

Syntax

setreg [-q] {[Choice# [TRUE|FALSE]}
Argument Description
-q Quiet mode. The registry is set, but key values are not displayed.
Choice# 1– Trust the test root.

2 – Use expiration date on certificates.

3 – Check the revocation list.

4 – Offline revocation server OK (individual).

5 – Offline revocation server OK (commercial).

8 – Invalidate version 1 signed objects.

9 – Check the revocation list on Time Stamp Signer.

10 - Only trust items found in the Trust database.

Examples

The following sets the registry to trust the test root (the root of all test certificates created with makecert) and displays key values.

setreg 1 TRUE

The following sets the registry to not check the revocation list, and not display key values.

setreg -q 3 FALSE