Skip to content

SecSamDev/signtool-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

A library to simplify the usage of Microsoft code signing library (SignTool) for Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages