Skip to content

tianhsky/node-windows-certs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Installation

npm i node-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

About

Get certificates from the windows cert store from node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 57.6%
  • C# 42.4%