DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 19 Jul 2007 02:36:17 -0700,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Buthrakaur
          2    dbgrick
          3    Buthrakaur


code signing problem   
Hello,
I just tried to sign my assemblies with my newly generated
certificate, but I get just error message when compiling the assembly.
I was following this article: http://www.codeproject.com/useritems/signcode.asp
, generated my certificate with blank password and afterwards used the
*.pfx file for signing in the VS project settings.

The error message:
genasm.exe(1) : error There was an error initializing .  Invalid
public key of assembly (HRESULT: 0x8013141E)

I also tried to generate new pfx certificate file directly from VS
project options dialog, but the compiler exception persists. Is there
any method how to get the signing working?

I used a snk file succesfully before, but I need to create the
provisioning file for WM devices and didn't found any method how to
get public part of the certificate to be able to get the SHA and
base64 values for building _setup.xml provisioning file. Is there any
method how to install certificate from a snk file on the device?

And another question - I created some helloworld application which I
was able to sign in VS and compile succesfully. The output exe file is
but without any signed certificate. The only working method is using
the signtool.exe utility, which will really sign the assembly and add
the certificate to the end of file (it is visible in HEX-editor). Is
the sign dialog in VS just for strong name signing and not for code
signing?
Date:Thu, 19 Jul 2007 02:36:17 -0700   Author:  

RE: code signing problem   
Try using the Visual Studios test certificates.  They can be found at 
Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools\TestCertificates
add the certificate under the Properties Devices tab by selecting the 
authenticode signing check box and importing the certificate.  You may need 
to install the certificates on the device.  You can do this using the 
sdkcerts.cab file located in the sub directory from above.  When you are 
ready to release your project, go to Verisign and request a real 
Mobile2Market certificate, sign you code, have Verisign sign it and you are 
ready to go.  I hope this helps.

Rick D.
Contractor

"Buthrakaur" wrote:


> Hello,
> I just tried to sign my assemblies with my newly generated
> certificate, but I get just error message when compiling the assembly.
> I was following this article: http://www.codeproject.com/useritems/signcode.asp
> , generated my certificate with blank password and afterwards used the
> *.pfx file for signing in the VS project settings.
> 
> The error message:
> genasm.exe(1) : error There was an error initializing .  Invalid
> public key of assembly (HRESULT: 0x8013141E)
> 
> I also tried to generate new pfx certificate file directly from VS
> project options dialog, but the compiler exception persists. Is there
> any method how to get the signing working?
> 
> I used a snk file succesfully before, but I need to create the
> provisioning file for WM devices and didn't found any method how to
> get public part of the certificate to be able to get the SHA and
> base64 values for building _setup.xml provisioning file. Is there any
> method how to install certificate from a snk file on the device?
> 
> And another question - I created some helloworld application which I
> was able to sign in VS and compile succesfully. The output exe file is
> but without any signed certificate. The only working method is using
> the signtool.exe utility, which will really sign the assembly and add
> the certificate to the end of file (it is visible in HEX-editor). Is
> the sign dialog in VS just for strong name signing and not for code
> signing?
> 
> 
Date:Thu, 19 Jul 2007 06:42:06 -0700   Author:  

Re: code signing problem   
thanks for your comments. I just get it working - I followed the
tutorial on codeproject, but I thought the "sign" project property
would aldso authenticode sign my code which was wrong assumption - I
just have to use signtool directly and everythink works.

On Jul 19, 3:42 pm, dbgrick  wrote:

> Try using the Visual Studios test certificates.  They can be found at
> Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools\TestCertificates
> add the certificate under the Properties Devices tab by selecting the
> authenticode signing check box and importing the certificate.  You may need
> to install the certificates on the device.  You can do this using the
> sdkcerts.cab file located in the sub directory from above.  When you are
> ready to release your project, go to Verisign and request a real
> Mobile2Market certificate, sign you code, have Verisign sign it and you are
> ready to go.  I hope this helps.
>
> Rick D.
> Contractor
>
> "Buthrakaur" wrote:
> > Hello,
> > I just tried to sign my assemblies with my newly generated
> > certificate, but I get just error message when compiling the assembly.
> > I was following this article:http://www.codeproject.com/useritems/signcode.asp
> > , generated my certificate with blank password and afterwards used the
> > *.pfx file for signing in the VS project settings.
>
> > The error message:
> > genasm.exe(1) : error There was an error initializing .  Invalid
> > public key of assembly (HRESULT: 0x8013141E)
>
> > I also tried to generate new pfx certificate file directly from VS
> > project options dialog, but the compiler exception persists. Is there
> > any method how to get the signing working?
>
> > I used a snk file succesfully before, but I need to create the
> > provisioning file for WM devices and didn't found any method how to
> > get public part of the certificate to be able to get the SHA and
> > base64 values for building _setup.xml provisioning file. Is there any
> > method how to install certificate from a snk file on the device?
>
> > And another question - I created some helloworld application which I
> > was able to sign in VS and compile succesfully. The output exe file is
> > but without any signed certificate. The only working method is using
> > the signtool.exe utility, which will really sign the assembly and add
> > the certificate to the end of file (it is visible in HEX-editor). Is
> > the sign dialog in VS just for strong name signing and not for code
> > signing?
Date:Thu, 19 Jul 2007 23:39:39 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us