Mozilla Network Security Services
npm install @achingbrain/nss64 bit versions of nss tools precompiled for Mac & Linux.
```
$ npm install @achingbrain/nss
## Usage
`javascript
const nss = require('@achingbrain/nss')
const execFile = require('child_process').execFile
const PROFILE_DIR = '/some/path'
// Promises
nss()
.then(paths => {
execFile(paths.certutil, ['-L', '-d', PROFILE_DIR], (error, result) => {
// ...
})
})
// Callbacks
nss((error, paths) => {
if (error) {
// handle error
}
execFile(paths.certutil, ['-L', '-d', PROFILE_DIR], (error, result) => {
// ...
})
})
`
1. Download a version of nss from Mozilla's download server (choose one bundled with nspr)
2. Run:
``
$ tar -xzf nss-X.XX-with-nspr.tar.gz
$ cd nss
$ BUILD_OPT=1 USE_64=1 make nss_build_all
dist` for compiled files
3. Look in