giladno / acme

A simple ACME client for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ACME

A simple ACME client for Node.js

Installation

$ npm install @giladno/acme --save

Usage

const ACME = require('@giladno/acme');

let account;
const client = new ACME(ACME.letsencrypt.staging, account);

account = await client.createAccount({email: 'email@domain.com'}); // you might want to persist account

app.use(client.middleware()); // for expressjs based apps

const {privateKey, cert, chain} = await client.register({domain: ['domain.com']});

TODO

  • Add method to update account key
  • Finish documentation
  • Add tests

Contributing

PR's are more than welcome! You can also drop me a line at gilad@novik.ca

License

MIT

About

A simple ACME client for Node.js


Languages

Language:JavaScript 100.0%