TJKoury / node-windows-certs

Get certificates from the windows cert store from node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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..."
}

See also MSDN documentation on:

License

MIT 2015 - José F. Romaniello

About

Get certificates from the windows cert store from node.js

License:MIT License


Languages

Language:JavaScript 57.6%Language:C# 42.4%