@peculiar/acme-express
v1.8.4
Published
Express middleware that addsAutomatic Certificate Management Environment (ACME) implementing RFC 8555 protocol
Downloads
21
Keywords
Readme
@peculiar/acme-express
About
@peculiar/acme-express
is an Express middleware that can be used to addAutomatic Certificate Management Environment (ACME) implementing RFC 8555 protocol.
Installation
npm install @peculiar/acme-express
Usage
import * as data from "@peculiar/acme-data-memory";
import { AcmeExpress } from "@peculiar/acme-express";
import * as server from "@peculiar/acme-server";
import { Crypto } from "@peculiar/webcrypto";
import * as express from "express";
import { container } from "tsyringe";
const app = express();
AcmeExpress.register(app, {
baseAddress: "http://localhost:4000/acme",
cryptoProvider: crypto,
});
// Register Data layer
data.DependencyInjection.register(container);
// Register Enrollment layer
container.register(server.diCertificateService, CertificateEnrollmentService);
app.listen(8000, () => { console.log(`Server is running`); });