You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mongodb-notary-service-client

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-notary-service-client

A client for our notary-service: an API for codesigning.

0.4.7
latest
Source
npmnpm
Version published
Weekly downloads
73
28.07%
Maintainers
1
Weekly downloads
 
Created
Source

mongodb-notary-service-client travis npm

A client for our notary-service (an API for codesigning).

Example

CLI

First, create a .env file:

NOTARY_URL=${url}
NOTARY_AUTH_TOKEN=${token}
NOTARY_SIGNING_KEY=${key_name}

Install the client:

npm install -g mongodb-notary-service-client;

Sign a file in-place:

notary my-app.rpm;

Sign multiple files in-place:

notary my-app.rpm my-app.deb my-app.tar.gz;

View more details:

☉ notary --help

  Commands:

    sign [files...]  sign one or more files
    check            check configuration
    logs             get log from notary-service

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    --debug        show debug output

API

process.env.NOTARY_URL="${url}";
process.env.NOTARY_AUTH_TOKEN="${token}";
process.env.NOTARY_SIGNING_KEY="${key_name}";

const sign = require('mongodb-notary-service-client');
sign('my-app.rpm').then((signed) => {
  if (signed) console.log('my-app.rpm has been signed and rewritten in-place');
});

License

Apache 2.0

FAQs

Package last updated on 16 Jan 2017

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