Skip to content

Convert certificates to PEM format using OpenSSL.

License

Notifications You must be signed in to change notification settings

sonicdoe/pemify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pemify

Convert certificates to PEM format using OpenSSL.

Currently only supports conversion from DER to PEM.

Installation

$ npm install pemify --save

Usage

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 for the full license.