2.2 KiB
2.2 KiB
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
})