docs.rs failed to build osslsigncode-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
osslsigncode
This is a safe (hopefully), Rust API for Authenticode.
Sign, verify, inspect, and strip signatures on PE/CAB/MSI/APPX and script files.
Bindings against osslsigncode, which doesn't provide a library, so please ping me if things start breaking, and I'll update!
use ;
use Path;
let root = new;
let dir = tempdir.unwrap;
let input = root.join;
let credential = pkcs12;
let signed = open?
.sign
.digest
.output
.sign?;
signed
.verify
.trust
.ignore_timestamp
.check?;
# Ok::
Extracting and inspecting
# use ;
# use Path;
# let root = new;
# let dir = tempdir.unwrap;
# let input = root.join;
# let credential = pkcs12;
# let signed = open?.sign.digest.output.sign?;
use Read;
let mut sig = Vecnew;
signed.extract_signature.pem.reader?.read_to_end.unwrap;
assert!;
// Inspect the embedded signature without asserting trust.
let info = signed.inspect?;
assert_eq!;
assert!;
let unsigned = signed.strip.output.strip?;
assert_eq!;
# Ok::
Builder completeness
use ;
use Path;
let root = new;
let input = root.join;
let credential = pkcs12;
let _ready = open
.unwrap
.sign
.digest
.timestamp
.output;
// `_ready.sign()` would run the job; omitting it still type-checks `Ready`.
Using from another crate
[]
= "0.2.0"
Clone with submodules. You need a C compiler, libclang (bindgen), and Perl
when the vendored OpenSSL feature is enabled.
License
The vendored upstream implementation is licensed under the GNU General Public
License, version 3 or later, with an OpenSSL linking exception. See
LICENSE and
vendor/osslsigncode/LICENSE.txt.
The compiled submodule revision is exported as VENDOR_COMMIT.