node-osx-keychain

1.0.1 • Public • Published

OSX KeyChain toolkit

Apple osx command line security wrapper

Install

npm install node-osx-keychain

Create

Create keychain and save to chain/hello.chain

const chain = await KeyChain.create(path.resolve('chain/hello.chain'), 'keyChainPassword');

Open keychain file chain/hello.chain

const chain = KeyChain.open(path.resolve('chain/hello.chain'), 'keyChainPassword')

Keychain list

Get list of all keychains

const list = await KeyChain.getList();
// {'chainName': {path: 'path to file'}}

Import p12 into keychain

You can import p12 keys into keychain

await chain.importP12(path.resolve('keys.p12'), '111111');

Get all items names

If you want to get list of all certs and keys in selected keychain file

const list = await chain.getItemsNames();
//['3rd Party Mac Developer Application:  ***', '...']

Readme

Keywords

none

Package Sidebar

Install

npm i node-osx-keychain

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • kwolfy