1.0.1 • Published 7 years ago

node-osx-keychain v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

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:  ***', '...']
1.0.1

7 years ago

1.0.0

7 years ago