[Mono-dev] signcode on the fly

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Feb 20 09:57:21 EST 2007


On Tue, 2007-02-20 at 11:42 -0200, Rafael Teixeira wrote:
> I think signtool is 'sn'. do 'man sn'

No it's not. It's a new(er) tool (to replace existing ones). Mono
doesn't have (nor does it really need) one at the moment.

> 
> On 2/20/07, viraj <kalinga at gmail.com> wrote:
> > hi all,
> > yes, i just verified it by creating a test certificate with makecert.
> > It signed my code without a problem. so the problem is the 'encrypted
> > pvk file', thank you for your hint Rafael!
> >
> > even though i have the password for the .pvk file, it seems 'signcode'
> > binary does not accept a password on it's input (man signcode)? am i
> > correct?
> >
> > with 'signtool' (MS Platform SDK), it accepts the password, is there a
> > 'signtool' equivalent in Mono?
> >
> > thanks again
> >
> >
> > ~viraj
> >
> >
> > On 2/20/07, Rafael Teixeira <monoman at gmail.com> wrote:
> > > 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 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
> > > > _______________________________________________
> > > > 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