# lets-encrypt-certificate-manager

> Lets Encrypt certificate manager

Latest version **2.0.3** (published 2019-06-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install lets-encrypt-certificate-manager
pnpm add lets-encrypt-certificate-manager
yarn add lets-encrypt-certificate-manager
bun add lets-encrypt-certificate-manager
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2019-06-02 |
| First published | 2019-05-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bandar Alolayan |
| Maintainers | bandar.alolayan |

## Links

- npm: https://www.npmjs.com/package/lets-encrypt-certificate-manager
- Repository: https://gitlab.com/exustus-team/lets-encrypt-certificate-manager
- Homepage: https://gitlab.com/exustus-team/lets-encrypt-certificate-manager#readme
- Issues: https://gitlab.com/exustus-team/lets-encrypt-certificate-manager/issues
- npm.io page: https://npm.io/package/lets-encrypt-certificate-manager

## Dependencies (3)

- [greenlock](https://npm.io/package/greenlock.md) ^2.7.17
- [redirect-https](https://npm.io/package/redirect-https.md) ^1.3.0
- [greenlock-store-fs](https://npm.io/package/greenlock-store-fs.md) ^3.0.2

## Recent versions

- 2.0.3 (latest) — 2019-06-02
- 2.0.2 — 2019-06-02
- 2.0.1 — 2019-05-22
- 2.0.0 — 2019-05-21
- 1.0.0 — 2019-05-21

## README

# lets-encrypt-certificate-manager
## dont use this package on production server
[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)

Lets Encrypt certificate manager encapsulates Greenlock and does auto renew Let's Encrypt certificates.
```javascript
// create and manage certificate for a domain
const https = require('https');
const CertificateManager = require('lets-encrypt-certificate-manager');

CertificateManager.domain = 'www.example.com';
CertificateManager.email = 'admin@example.com';
CertificateManager.httpToHttpsRedirectEnabled = true; // redirects all traffic from http to https 
CertificateManager.ip = '12.123.123.21';
//CertificateManager.version = 'draft-12'; // default is 'draft-12'
//CertificateManager.isProduction = true; // default is true
//CertificateManager.renewCertWithin = 60 * 24 * 60 * 60 * 1000; // default is 60 * 24 * 60 * 60 * 1000
//CertificateManager.renewCertBy = 30 * 24 * 60 * 60 * 1000; // default is 30 * 24 * 60 * 60 * 1000
//CertificateManager.debugEnabled = true; // default is true
var greenlock = CertificateManager.greenlockInit();

https.createServer(greenlock.httpsOptions, (req, res) => {
  res.writeHead(200);
  res.end('hello world\n');
}).listen(8000);

```

---
_Source: https://npm.io/package/lets-encrypt-certificate-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
