Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abtnode/certificate-manager

Package Overview
Dependencies
Maintainers
3
Versions
614
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtnode/certificate-manager

Manage ABT Node SSL certificates

  • 1.6.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by56.74%
Maintainers
3
Weekly downloads
 
Created
Source

Certificate Manager

Manage SSL certificates:

  • 管理上传的证书
  • 生成/自动更新 Let's Encrypt 证书
  • 过期提醒

Usage

Well-known route

const certificateManager = require('@abtnode/certificate-manager');

app.use(certificateManager.routes);

Core Manager

Initialize
const CertificateManager = require('@abtnode/certificate-manager/sdk/manager');

const certManager = new CertificateManager({
  maintainerEmail: '{email of the certificate manager}',
  dataDir: '{data directory of the certificate manager}',
});

certManager.start(); // Start renewal cron jobs
Events
  1. cert.issued: Issue certificate successfully
  2. cert.error: Issue certificate failed
CRUD
  • getAll(): Get all certificates, includes in-progress status.
  • getAllNormal(): Get normal state certificate, without in-progress status.
  • getByDomain(domain): Get the certificate by domain.
  • add(certificate): Add certificate to database.
  • issue(domain): Add the generate certificate task.
  • upsertByDomain(certificate): Add certificate to database, if the domain already exists, update it.
  • update(id, certificate): Update certificate by ID.
  • remove(id): Remove certificate by ID.
  • addWithoutValidations(certificate): Same as add(certificate), but no data validation.

FAQs

Package last updated on 11 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc