[Mono-dev] signcode on the fly

viraj kalinga at gmail.com
Tue Feb 20 05:00:16 EST 2007


hi all,
i'm trying to signcode a win32 executable on Linux, using Mono's signcode.

when i issue the command..

signcode -spc myspcfromthawte.spc -v mypvkfromthawte.pvk -n "My App -
Quick Demo" -t "http://timestamp.verisign.com/scripts/timstamp.dll"
quickDemo.exe

it says..

Mono SignCode - version 1.2.2.1
Sign assemblies and PE files using Authenticode(tm).
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2006 Novell.
BSD licensed.


Unhandled Exception:
System.Security.Cryptography.CryptographicException: Invalid data
and/or password
  at Mono.Security.Authenticode.PrivateKey..ctor (System.Byte[] data,
System.String password) [0x00000]
  at Mono.Security.Authenticode.PrivateKey.CreateFromFile
(System.String filename, System.String password) [0x00000]
  at Mono.Security.Authenticode.PrivateKey.CreateFromFile
(System.String filename) [0x00000]
  at Mono.Tools.SignCode.GetPrivateKey (System.String keyfile,
System.Security.Cryptography.CspParameters csp) [0x00000]
  at Mono.Tools.SignCode.Main (System.String[] args) [0x00000]

couldn't trace a similar error message on internet.

am i missing any parameters? or what should be the correct syntax of
the command.

thanks a lot.

~viraj



More information about the Mono-devel-list mailing list