Skip to content

OwnLocal/google-p12-pem

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-p12-pem

Convert Google .p12 keys to .pem keys.

Build Status

Installation

npm install google-p12-pem

Usage

Asynchronous

var gp12 = require('google-p12-pem');
gp12('/path/to/key.p12', function(err, pem) {
  if (err) {
    console.log(err);
  } else {
    console.log(pem); // '-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAK...'
  }
});

Synchronous

Note: If an error occurs and the callback is omitted, it will throw the error.

var gp12 = require('google-p12-pem');
var pem = gp12('/path/to/key.p12');
console.log(pem); // '-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAK...'

CLI

gp12-pem myfile.p12 > output.pem

License

MIT

About

Convert Google .p12 keys to .pem keys.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%