[Mono-dev] signcode on the fly

Rafael Teixeira monoman at gmail.com
Tue Feb 20 07:34:56 EST 2007

Hi Viraj,

Just my inexperienced view on the problem:

It seems that your pvk is encrypted, and you need to provide a
password for signcode to use it, but I also don't know how. An
alternative is to use an unencripted pvk file.


On 2/20/07, viraj <kalinga at gmail.com> wrote:
> 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
> 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
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

Rafael "Monoman" Teixeira
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw

More information about the Mono-devel-list mailing list