smartacme/README.md

2.2 KiB

smartacme

acme implementation in TypeScript

Availabililty

npm git git docs

Status for master

build status coverage report npm downloads per month Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

import { SmartAcme } from 'smartacme'

let smac = new SmartAcme()

let myAccount = smac.getAccount() // optionally accepts a filePath Arg with a stored acmeaccount.json
let myCert = myAccount.getChallenge('example.com','dns-01') // will return a dnsHash to set in your DNS record
myCert.get().then(() => {
    console.log(myCert.certificate) // your certificate, ready to use in whatever way you prefer
})

npm