| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Pure-Go Microsoft Authenticode signing for Windows PE (.exe / .dll) files. No CGO, no osslsigncode shell-out, no PKCS#11 engine — just encoding/asn1 and the standard crypto.Signer interface.
Verified end-to-end with osslsigncode verify (DigiCert-issued code-signing chain, ECDSA P-384 / SHA-384).
import "github.com/KarpelesLab/authenticode"
// signer is anything implementing authenticode.Signer:
// crypto.Signer + Certificate() *x509.Certificate + CertificateChain() []*x509.Certificate
// (github.com/KarpelesLab/hsm Key satisfies it directly.)
signed, err := authenticode.Sign(peBytes, signer, authenticode.SignOptions{
Hash: crypto.SHA384,
TSAURL: "http://timestamp.digicert.com",
})SignWithChain is the lower-level form that accepts a raw crypto.Signer and an explicit chain.
MIT — see LICENSE.
| Back | FazBrowse Home | New Git URL |