# le-tls-sni

> Module for use with node-letsencrypt to generate certificates to satisfy tls-sni-01 and tls-sni-02 ACME challenges.

Latest version **0.1.4** (published 2016-10-21) · (MIT OR Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install le-tls-sni
pnpm add le-tls-sni
yarn add le-tls-sni
bun add le-tls-sni
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2016-10-21 |
| First published | 2016-10-08 |
| Weekly downloads | 0 |
| License | (MIT OR Apache-2.0) |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+16 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Schmidt |
| Maintainers | insightfuls |
| Keywords | tls, sni, tls-sni, tls-sni-, tls-sni-01, tls-sni-02, ACME, letsencrypt, certbot |

## Links

- npm: https://www.npmjs.com/package/le-tls-sni
- Repository: https://github.com/insightfuls/le-tls-sni
- Homepage: https://github.com/insightfuls/le-tls-sni#readme
- Issues: https://github.com/insightfuls/le-tls-sni/issues
- npm.io page: https://npm.io/package/le-tls-sni

## Dependencies (2)

- [node-forge](https://npm.io/package/node-forge.md) ^0.6.43
- [rsa-compat](https://npm.io/package/rsa-compat.md) ^1.2.7

## Recent versions

- 0.1.4 (latest) — 2016-10-21
- 0.1.2 — 2016-10-09
- 0.1.1 — 2016-10-08
- 0.1.0 — 2016-10-08

## README

le-tls-sni
==========

Module for use with node-letsencrypt to generate certificates to satisfy
tls-sni-01 and tls-sni-02 ACME challenges.

It assumes `n` is just 1 for tls-sni-01 challenges. Let's Encrypt's CA
`boulder` omits `n` and acts as if it were 1.

Install
-------

```bash
npm install --save le-tls-sni
```

Usage
-----

The API is the same as for the node-letsencrypt v2 challenge set method:

* `require('le-tls-sni').generate(opts, domain, key, val, done)`

The `done` callback will be called like:

```javascript
done(null, {
, privkey: '<<privkey.pem>>'
, cert: '<<cert.pem>>'
, subject: 'x.y.invalid.acme'
, altnames: [ 'x.y.token.invalid.acme', 'x.y.ka.invalid.acme' ]
, issuedAt: 1470975565000
, expiresAt: 1478751565000
});
```

It will use `opts.challengeType` to distinguish between tls-sni-01 and
tls-sni-02.

---
_Source: https://npm.io/package/le-tls-sni · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
