🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

simple-signtool

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-signtool

A simple wrapper around signtool using node `exec`.

latest
Source
npmnpm
Version
0.15.1
Version published
Maintainers
1
Created
Source

Simple Signtool

A simple wrapper around signtool using node exec.

Documentation

  • Project Documentation
  • Microsoft® Signtool Documentation

Installation

npm install simple-signtool --save-dev

Usage

First, import simple-signtool into your project:

import * as signtool from 'simple-signtool';

Example

import * as signtool from 'simple-signtool';

const file = path.join(__dirname, 'my.exe');

signtool.sign(file, {
    rawString: '/d mydescription',
    rfcTimeStampUrl: {
        url: 'http://sha1timestamp.ws.symantec.com/sha1/timestamp',
        digestAlgorithm: 'sha256'
    }
});

signtool.sign(file, options);

Contributing

Guidelines

  • Independent options should be in the top-level options interface, e.g., rawString
  • Options that depend on each other should be in their own interface.
    Example:
    export interface ISignOptions {
        rfcTimeStampUrl?: IRFCTimeStamp;
    }
    
    interface IRFCTimeStamp {
        url: string;
        digestAlgorithm?: 'sha256'; // depends on 'url'
    }
    

Steps

  • Fork this repository
  • Get project working locally
    • git clone git@github.com:<yourusername>/simple-signtool.git
    • cd simple-signtool
    • npm install
  • Write/edit code
  • Write tests
  • Run npm test and fix any errors
  • Open a pull request

License

MIT, please see LICENSE.md for details.

FAQs

Package last updated on 19 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts