node-windows-certs

4.0.0 • Public • Published

Read certificates from the Windows Cert Store from node.js.

Installation

npm i windows-certs

Usage

var certs = require('windows-certs');
 
certs.get({
  storeName: 'CertificateAuthority',
  storeLocation: 'LocalMachine'
}, function (err, certs) {
   console.log(certs);
});

The returned object certs is a object like this:

{
  "subject": "CN=hello.com, O=Internet Widgits Pty Ltd, S=Some-State, C=AU",
  "issuer": "foo bar",
  "thumbprint": "...",
  "pem": "-----BEGIN CERTIFICATE-----\nMIID9DCCAtygAwIBAgIJANWBEUdUZOlPMA0GCSqGSIb3DQEBBQUAMFkxCzAJBgNV..."
}

License

MIT 2015 - José F. Romaniello

Readme

Keywords

none

Package Sidebar

Install

npm i node-windows-certs

Weekly Downloads

1

Version

4.0.0

License

MIT

Last publish

Collaborators

  • tianhsky