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.
- Host: GitHub
- URL: https://github.com/sonicdoe/pemify
- Owner: sonicdoe
- License: isc
- Created: 2017-05-14T13:18:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-25T10:37:17.000Z (almost 9 years ago)
- Last Synced: 2025-10-12T04:39:49.175Z (8 months ago)
- Topics: certificates, der, es2015, javascript, nodejs, openssl, pem, semver, ssl, tls, x509
- Language: C++
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.