# make-cert

> Quickly generate a self-signed cert to start an HTTPS server

Latest version **1.2.1** (published 2021-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install make-cert
pnpm add make-cert
yarn add make-cert
bun add make-cert
```

Provides the command `make-cert`.

## 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 | 1.2.1 |
| Published | 2021-07-11 |
| First published | 2020-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 (+14 in 1 direct dependencies) |
| Install scripts | no |
| Author | Vinson Chuong |
| Maintainers | vinsonchuong |
| Keywords | SSL, HTTPS, certificate |

## Links

- npm: https://www.npmjs.com/package/make-cert
- Repository: https://github.com/vinsonchuong/make-cert
- Issues: https://github.com/vinsonchuong/make-cert/issues
- npm.io page: https://npm.io/package/make-cert

## Dependencies (1)

- [node-forge](https://npm.io/package/node-forge.md) ^0.10.0

## Recent versions

- 1.2.1 (latest) — 2021-07-11
- 1.2.0 — 2021-03-16
- 1.1.2 — 2020-11-23
- 1.1.1 — 2020-11-08
- 1.1.0 — 2020-07-05

## README

# make-cert
[![npm](https://img.shields.io/npm/v/make-cert.svg)](https://www.npmjs.com/package/make-cert)
[![CI Status](https://github.com/vinsonchuong/make-cert/workflows/CI/badge.svg)](https://github.com/vinsonchuong/make-cert/actions?query=workflow%3ACI)
[![dependencies Status](https://david-dm.org/vinsonchuong/make-cert/status.svg)](https://david-dm.org/vinsonchuong/make-cert)
[![devDependencies Status](https://david-dm.org/vinsonchuong/make-cert/dev-status.svg)](https://david-dm.org/vinsonchuong/make-cert?type=dev)

Quickly generate a self-signed cert to start an HTTPS server

## Usage
Install [make-cert](https://www.npmjs.com/package/make-cert)
by running:

```sh
yarn add make-cert
```

To generate a `key.pem` with the private key and `cert.pem` with the
certificate, both in PEM format, run:

```sh
yarn make-cert localhost
```

To use this in your own JavaScript code:
```js
import makeCert from 'make-cert'

const {key, cert} = makeCert('localhost')
console.log(key)
console.log(cert)
```

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