HOWTO: How Do I Enable Test Certificates on a Client Machine?ID: Q179543
|
When creating a test certificate using makecert, cert2spc, and signcode to sign a .cab file, it is not always obvious why the client machine running Internet Explorer 3.0 or Internet Explorer 4.0 ignores the signed .cab file. The answer is to use "setreg 1 true" with SDK for Java 2.0 or later. This will force the client machine to treat the root authority as trusted and therefore allow signed cabfiles, which are signed with test certificates.
Setreg.exe is a utility program provided with the SDK for Java 2.0 and
later. You will find it in the bin/packsign folder. The root authority
(test root) may be set back to untrusted by running "setreg 1 false."
Please see the SDK for Java 2.0 and later documentation for more
information on using makecert, cert2spc and signcode. Setreg.exe replaces
the Wvtston.reg utility included with earlier versions of the digital
signing tools.
When Internet Explorer encounters a .cab file that is signed with a test
certificate on a machine that does not trust the root authority, it may
react in several different ways. When downloading an ActiveX Component,
Internet Explorer 3.0 displays an error message saying "The component
appears to have been digitally signed by its publisher, but the signature
cannot be verified." When downloading an applet, Internet Explorer 3.0
presents no dialog box or message; it simply runs the applet in untrusted
mode, and the applet generally fails with a security exception.
When Internet Explorer 4.0 encounters any .cab file that is signed with a
test certificate on a machine that does not trust the root authority, it
displays a warning message, saying that "The authenticity of this content
cannot be verified," and that "the test root has not been enabled as a
trusted root."
For more information on the setreg tool, or other tools mentioned in this article, please browse the SDK for Java documentation at the following Web site:
http://www.microsoft.com/java/sdk/For additional information, please see the following article in the Microsoft Knowledge Base:
Q177179 INFO: IE Does Not Display Signed CAB File CertificateFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, please see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/
http://support.microsoft.com/support/java/
Additional query words: test certificate
Keywords : kbSDKJava300 kbSDKJava310 JVM kbSDKJava320
Version : WINDOWS:1.0,1.1,2.01,2.0,2.02,3.0,3.1
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: July 13, 1999