@achingbrain/nss 中文文档教程
Mozilla Network Security Services
64 位版本的 nss 工具预编译用于 Mac & Linux。
Installation
$ npm install @achingbrain/nss
Usage
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) => {
// ...
})
})
Building new versions
- Download a version of nss from Mozilla's download server (choose one bundled with nspr)
- Run:
$ tar -xzf nss-X.XX-with-nspr.tar.gz $ cd nss $ BUILD_OPT=1 USE_64=1 make nss_build_all
- Look in
dist
for compiled files
Mozilla Network Security Services
64 bit versions of nss tools precompiled for Mac & Linux.
Installation
$ npm install @achingbrain/nss
Usage
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) => {
// ...
})
})
Building new versions
- Download a version of nss from Mozilla's download server (choose one bundled with nspr)
- Run:
$ tar -xzf nss-X.XX-with-nspr.tar.gz $ cd nss $ BUILD_OPT=1 USE_64=1 make nss_build_all
- Look in
dist
for compiled files
更多
你可能也喜欢
- 2-camel-case 中文文档教程
- @01/launcher 中文文档教程
- @0x706b/ts-transform-esm-specifier 中文文档教程
- @0xproject/monorepo-scripts 中文文档教程
- @0y0/scraper-extensions 中文文档教程
- @19h47/spinbutton 中文文档教程
- @1onlinesolution/dws-express 中文文档教程
- @3wks/sargon-api-node-client 中文文档教程
- @5rabbits/react-polyglot 中文文档教程
- @7factor/react-native-form-builder 中文文档教程