A TypeScript-based ACME client with an easy yet powerful interface for LetsEncrypt certificate management.
dist | ||
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
LICENSE | ||
npmextra.json | ||
package.json | ||
README.md | ||
tslint.json |
smartacme
acme implementation in TypeScript
Availabililty
Status for master
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
})