UNPKG

@small-tech/auto-encrypt

Version:

Automatically provisions and renews Let’s Encrypt TLS certificates on Node.js https servers (including Kitten, Polka, Express.js, etc.)

24 lines (21 loc) 711 B
//////////////////////////////////////////////////////////////////////////////// // // AccountIdentity // // Generates, stores, loads, and saves the account identity. The default // account identity file path is: // // ~/.small-tech.org/auto-encrypt/account.pem // // Copyright © 2020 Aral Balkan, Small Technology Foundation. // License: AGPLv3 or later. // //////////////////////////////////////////////////////////////////////////////// import Identity from '../Identity.js' import Throws from '../util/Throws.js' const throws = new Throws() export default class AccountIdentity extends Identity { constructor (configuration = throws.ifMissing()) { super(configuration, 'accountIdentityPath') } }