signo-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

signo-client

NPM Version NPM Type Definitions Build Status GitHub License

Client to send signing requests to signo server.

Library usage

You can use this package as a library by importing it. The library is bundled as an ES Module.

import fsp from 'fs/promises';
import SignoClient from 'signo-client';

const client = new SignoClient({
	server: 'https://signo.example.com', // the address of the signo server
	signee: 13, // the ID of the signee
	secret: '8fE1+NqqVG...', // the shared secret of the signee
	engine: 3 // the ID of the engine to use for signing
});

const toSign = await fsp.readFile('some-file.txt');

const signature = await client.sign();

await fsp.writeFile('some-file.tst.sig', signature);

CLI usage

You can use this package through CLI as well:

Usage: signo-client [options] <file>

Client to send signing requests to signo server

Options:
  -S, --server <server>  endpoint of signo server (default: "https://localhost:3000/")
  -c, --client <signee>  ID of signee
  -s, --secret <secret>  shared secret of signee
  -e, --engine <engine>  ID of engine to use for signing
  -o, --output <output>  save signature to file instead of outputting it as hex
  --unsafe               accept any https certificate
  -h, --help             display help for command

Learn more

Signo is a managed signing solution that can be used to share a physical PKCS#11 security token through the internet.

Package Sidebar

Install

npm i signo-client

Weekly Downloads

14

Version

1.0.2

License

GPL-3.0

Unpacked Size

44.1 kB

Total Files

10

Last publish

Collaborators

  • gergof