#signing #executable #microsoft #windows #installed #winapi #tool

signtool

Simplify using SignTool to sign Windows executables

7 stable releases

new 1.2.0 May 28, 2024
1.1.0 Feb 22, 2024
1.0.4 Oct 27, 2023
1.0.2 Apr 13, 2023
1.0.1 Mar 22, 2023

#11 in #installed

Download history 1/week @ 2024-02-13 135/week @ 2024-02-20 20/week @ 2024-02-27 1/week @ 2024-03-05 92/week @ 2024-03-12 1/week @ 2024-03-26 8/week @ 2024-04-02

411 downloads per month

MIT license

14KB
301 lines

SignTool for Rust

crates.io

A library to simplify the usage of Microsoft code signing library (SignTool) for Rust. Inspired by rust-codesign

This library is a convenience wrapper around Microsoft's signing tool and requires the Windows SDK to be installed.

Usage

let signtool = signtool::SignTool::new().unwrap();
signtool.sign(std::path::Path::new("my_exe.exe"), &SignParams::Thumbprint(ThumbprintParams {
    digest_algorithm: SignAlgorithm::Sha256,
    certificate_thumbprint: format!("1fcd13024cf4a254440963990704f207030bf694"),
    timestamp_url: TimestampUrl::Comodo,
})).unwrap();

Dependencies

~0.7–28MB
~365K SLoC