Mono(signcode)
πΈ signcode β Mono(signcode) πΈ
okay bestie, sit DOWN, because today we're talking about signcode, the Mono tool that digitally signs PE executables with an X.509 certificate. yes, like actual cryptographic signature energy. it's giving notary public but make it cyber. π
β¨ SYNOPSIS β¨
signcode [options] filename
that's it. that's the whole vibe. options + a filename. slay.
π DESCRIPTION π
So. signcode digitally signs a PE executable β and when we say PE executable we mean a CLR assembly, a Win32 EXE, or a DLL β using an X.509 certificate and its associated private key. π«Ά
The signature it produces is compatible with Authenticode(r), and you can validate it with chktrust β either on Windows or on literally any platform Mono supports. cross-platform queen behavior, no cap.
π OPTIONS π
-spcspcfile β The Software Publisher File (spc) that contains the X.509 certificate chain used to digitally sign the PE executable. π-vpvkfile β The Private Key File (pvk) that contains the private key used to digitally sign the PE executable. This private key must match the public key inside the publisher X.509 certificate. no mismatches allowed, that's a vibe check fail. π-a sha1 | md5 | sha2 | sha256 | sha384 | sha512β The hash algorithm used in the digital signature of the PE executable. The default algorithm is SHA1. pick your fighter β¨-$ individual | commercialβ Add information about the publisher, i.e. if the signature is generated by an individual or a commercial entity. are you a person or a brand, bestie, choose wisely π-ndescription β Add a textual description of the signed file. a lil caption for your binary, cute. πΈ-iurl β Add a URL associated to the publisher or the signed file. link in bio but for executables π¦-turl β URL to a timestamp service to countersign the PE executable. Countersignature is required if you want the PE executable signature to be valid after the publisher certificate expires. The countersignature proves that the publisher had a valid (non-expired) certificate when the PE executable was signed. it's a receipt, basically. proof you were valid at the time. iconic. β°-tr# β Number of retries to get a timestamp for the countersignature. π-tw# β Delay (in seconds) between the retries to get a timestamp for the countersignature. patience is a virtue, lowkey. β-kname β CryptoAPI key container name (when not using-v).-pname β CryptoAPI provider name (when not using-v).-y# β CryptoAPI provider type (when not using-vor-p).-ky signature | exchange | #β CryptoAPI key type (when not using-v).-r localMachine | currentUserβ CryptoAPI key location (when not using-v).-help,-h,-?,/?β Display help about this tool. when in doubt, ask for help, it's self care π«Ά
π OTHER CODE SIGNING TECHNOLOGIES π
Assemblies are PE files that can also be strongnamed using the sn.exe tool. π
And here's the part where the order matters, so listen up: the order of code signature is important if a file requires both an Authenticode and a strongname signature. Strongname must be applied before the Authenticode signature.
Applying a strongname after the Authenticode signature, like re-signing an assembly (e.g. delay-sign), will invalidate the Authenticode signature. not "might", not "maybe", it WILL. π order of operations is real, bestie.
π KNOWN RESTRICTIONS π
signcode cannot generate Authenticode signatures for CAB files. that's it, that's the limit, she said no. π«
π AUTHOR π
Written by Sebastien Pouliot. thank you for your service, king. π«‘
π COPYRIGHT π
Copyright (C) 2003 Motus Technologies. Copyright (C) 2004 Novell.
Released under BSD license. π
π MAILING LISTS π
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details. come hang out, the group chat is open π¬
π WEB SITE π
Visit http://www.mono-project.com for details. β¨
π SEE ALSO π
chktrust(1), makecert(1), cert2spc(1)
and that's the whole page, bestie!! π this was Mono(signcode) β the Mono manual's signcode(1) page, written by Sebastien Pouliot, copyright 2003 Motus Technologies and 2004 Novell, BSD licensed, and you read the WHOLE thing. so proud. now go sign something. periodt. π
πβ¨
π¦ where this page comes from
- alpine 3.24: mono-doc 6.14.1-r1 Β· MIT
- epel 10: mono-devel 6.14.1-1.el10_2 Β· MIT
- fedora 44: mono-devel 6.14.1-3.fc44 Β· MIT
- fedora 44: mono-devel 6.14.1-3.fc44 Β· MIT
- fedora 44: mono-devel 6.14.1-4.fc44 Β· MIT
- fedora 44: mono-devel 6.14.1-4.fc44 Β· MIT
- nixos 26.05: mono 6.14.1
- nixpkgs unstable: mono 6.14.1
- ubuntu resolute: mono-devel 6.14.1+ds2-2 Β· MIT
- ubuntu stonking: mono-devel 6.14.1+ds2-3 Β· MIT
- Copyright 2003 Motus Technologies
- Copyright 2004 Novell
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms