pemify
Version:
Convert certificates to PEM format using OpenSSL.
28 lines (18 loc) • 489 B
Markdown
> Convert certificates to PEM format using OpenSSL.
Currently only supports conversion from DER to PEM.
```sh
$ npm install pemify --save
```
```js
const fs = require('fs')
const pemify = require('pemify')
const derCertificate = fs.readFileSync('www.example.org.crt')
pemify.der(derCertificate)
// => -----BEGIN CERTIFICATE-----\nMIIF8 …
```
pemify is licensed under the ISC license. See [`LICENSE`](./LICENSE)
for the full license.