An open API service indexing awesome lists of open source software.

https://github.com/sonicdoe/pemify

Convert certificates to PEM format using OpenSSL.
https://github.com/sonicdoe/pemify

certificates der es2015 javascript nodejs openssl pem semver ssl tls x509

Last synced: about 2 months ago
JSON representation

Convert certificates to PEM format using OpenSSL.

Awesome Lists containing this project

README

          

# pemify

> Convert certificates to PEM format using OpenSSL.

Currently only supports conversion from DER to PEM.

## Installation

```sh
$ npm install pemify --save
```

## Usage

```js
const fs = require('fs')
const pemify = require('pemify')
const derCertificate = fs.readFileSync('www.example.org.crt')

pemify.der(derCertificate)
// => -----BEGIN CERTIFICATE-----\nMIIF8 …
```

## License

pemify is licensed under the ISC license. See [`LICENSE`](./LICENSE)
for the full license.