Question on makecert, signcode, chktrust

Question on makecert, signcode, chktrust

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Question on makecert, signcode, chktrust Tim Johnson 11-08-2005
Posted by Tim Johnson on November 8, 2005, 10:22 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
I'm new to certificates but I've tried the prescribed steps without success.
With a simple .Net exe I've done this to use a test certificate:

- makecert -sk "ABC" -n "CN=ABC CORP" abc.cer

- signcode using UI to specify
- abc.exe
- Custom signing
- select-from-file the abc.cer file
- Private key in a CSP, specifying ABC
- sha1 hash algorithm
- specify "Abc Corp" as description, www.abccorp.com as the URL

- setreg 1 true

It says it all worked, and my abc.exe is bigger than it was. But when I
then do ChkTrust abc.exe the message box it brings up says it's untrusted.

Back in signcode there's a place to View Certificate. It says "Cannot be
verified up to a trusted certification authority". . If I look at the
Certification Path is shows "Root Agency" as parent of "Abc Corp". "Abc
Corp" says certificate OK. Root Agency says "This CA Root certificate is
not trusted because it is not in the Trusted Root Certification Authorities
store.". If I click on Install Certificate.. to run the Cert Import wizard,
nothing changes

So is there some other simple step I've not heard about to get test certs,
or even just signcode/chktrust, to really work?

--

Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625




Posted by Tim Johnson on November 9, 2005, 1:01 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Addendum - I'd been using signcode from VS2003 bin directory because it
didn't seem to be in VS2005. I now see it's been renamed "signtool", and
also replaces the ChkTrust utility with the new "verify" option. So I reran
makecert, then signtool in signwizard mode, then ran signtool verify /a
<filename> and got this message:

SignTool Error: WinVerifyTrust returned error: 0x800B010D
The certification path terminates with the test root which is not
trusted with the current policy settings.
SignTool Error: File not valid: MyApp.exe

Isn't "setreg 1 true" supposed to eliminate this not-trusted error? What am
I missing?
--

Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625


> I'm new to certificates but I've tried the prescribed steps without
> success. With a simple .Net exe I've done this to use a test certificate:
>
> - makecert -sk "ABC" -n "CN=ABC CORP" abc.cer
>
> - signcode using UI to specify
> - abc.exe
> - Custom signing
> - select-from-file the abc.cer file
> - Private key in a CSP, specifying ABC
> - sha1 hash algorithm
> - specify "Abc Corp" as description, www.abccorp.com as the URL
>
> - setreg 1 true
>
> It says it all worked, and my abc.exe is bigger than it was. But when I
> then do ChkTrust abc.exe the message box it brings up says it's untrusted.
>
> Back in signcode there's a place to View Certificate. It says "Cannot be
> verified up to a trusted certification authority". . If I look at the
> Certification Path is shows "Root Agency" as parent of "Abc Corp". "Abc
> Corp" says certificate OK. Root Agency says "This CA Root certificate is
> not trusted because it is not in the Trusted Root Certification
> Authorities store.". If I click on Install Certificate.. to run the Cert
> Import wizard, nothing changes
>
> So is there some other simple step I've not heard about to get test certs,
> or even just signcode/chktrust, to really work?
>
> --
>
> Tim Johnson
> High Point Software, Inc.
> www.high-point.com
> (503) 312-8625
>
>
>



Similar ThreadsPosted
SignCode June 7, 2007, 4:29 pm
makecert.ext tool required July 25, 2008, 10:05 am
signcode via proxy May 16, 2006, 3:39 am
Create certificate with makecert for LDAPS on a DC ? December 11, 2007, 11:10 am
firewall question and windows installer/spyware question September 24, 2006, 8:48 am
PKI Question October 6, 2005, 4:59 pm
DNS Question August 8, 2006, 11:03 pm
EFS question October 23, 2006, 10:52 am
question on GPO April 5, 2007, 8:31 pm
GPO Question January 12, 2008, 10:53 pm

The site map in XML format XML site map

Contact Us | Privacy Policy