{"_id":"@blockchainlabs/ibm-certificate-manager-wallet","_rev":"7-521f6211c379f452401bbd4f08cbe4d4","name":"@blockchainlabs/ibm-certificate-manager-wallet","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@blockchainlabs/ibm-certificate-manager-wallet","version":"0.0.1","description":"A Hyperledger Fabric Wallet for the IBM Cloud Certificate Manager Service.","author":{"name":"BlockchainLabs"},"main":"index.js","engines":{"node":">=8","npm":">=5"},"scripts":{"lint":"eslint .","lintfix":"eslint --fix .","test":"nyc mocha --recursive  -t 10000"},"repository":{"type":"git","url":"github.ibm.com/BlockchainLabs/certificate-manager-wallet.git"},"license":"Apache-2.0","types":"./types/index.d.ts","dependencies":{"@ibm-functions/iam-token-manager":"1.0.3","fabric-network":"1.4.1","fabric-client":"1.4.1","log4js":"0.6.38","request-promise":"4.2.4"},"devDependencies":{"bluebird":"3.5.4","chai":"^4.1.2","chai-as-promised":"^7.1.1","eol":"^0.9.1","eslint":"^4.19.1","eslint-config-airbnb":"^17.0.0","eslint-config-airbnb-base":"^13.0.0","eslint-plugin-import":"^2.13.0","mocha":"^5.2.0","nyc":"^12.0.2","rewire":"^4.0.1","sinon":"^5.0.7"},"nyc":{"exclude":["index.js","coverage/**","test/**"],"reporter":["lcov","json","text","text-summary","cobertura"],"cache":true,"all":true,"check-coverage":true,"statements":100,"branches":100,"functions":100,"lines":100},"gitHead":"3b07c74a95f50bb94409552c2baa67dcba39b1db","_id":"@blockchainlabs/ibm-certificate-manager-wallet@0.0.1","_nodeVersion":"8.11.4","_npmVersion":"6.9.0","dist":{"integrity":"sha512-G0lDYT/DZ+juF3h62gxl6A5ZT/PRuXbo3iiTALyjCrjfJuJTVVb+LYXe8sYIFSEE7JePjjCIDLwy35apDumCug==","shasum":"08a1da67c4c75e1b0d4d8eb232d5ba313b78cacc","tarball":"https://registry.npmjs.org/@blockchainlabs/ibm-certificate-manager-wallet/-/ibm-certificate-manager-wallet-0.0.1.tgz","fileCount":10,"unpackedSize":35384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAWTdCRA9TVsSAnZWagAAutsP/2S0uxhCln43I72MUbQ7\niue/vHRj0nF/W2DKSreTOtXaED01b+EryXQbd7iMtwG1eOE+fFyC0vlLzzwP\nv3tZWL+Mta5cSr8HjlfQEr58tgPLd69WXW3Mdfz/YIHr72+Obm+njdumv8U1\nYIyTY6HjxJWE/fuQa/h10gcWVEsqiyC5mV/GJo9JHIBSvm2c+OpL2102NIqV\nu8DPtwMv879i3YdnsgQ6htGkNpQlXpAnE5CaxA9Z01WSPusZYWN4Z+v105Mo\nYY+/XALKBQZFGfQel4cZySuLuy+z2V2vQ6pCvqewsfhc86NpSdj5ycarvu8h\nBuSk233SqWlFwjce7X83hJragz+0DFEu+JcSWwsi2WZL2Hf5DhyiXfyps8RN\n0aNy3MfR5XOgR5Hp4yKCuAQiLkcgzbYAsGRsSIKoqN3YYTtuofKTGujZM9nG\n9Fo3ieDwDLLeroxkiw/d+BaFO38LQ3gm5Ni0wzDf8Oy808HtNhmI8buWR9LL\n9aZLcAWbNfcpKZtfDF7sy4rry7ARFEsUXCGpZWH0WdekaqWBUC3JOM3USy5O\n/b6XNIUAJepLNib/Gx9GWaSIAfh/Fp6Rzyn/MzHlmoLAZsM6ydC7wnLcbvkg\nsjaEbCTxfJ/HCZvwNLLvL0IBXE8SLbX52KdyEDpnEVgmO2rs17pytASH0cyF\n67xa\r\n=K2o+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDF1g0ndUc+msBjxcU/APiSbaGd2boqlJt1zYWCBArwtQIhAPlHupIT9DC2m05hAoXjn/vouL+38xwEfn1DvjzHicH+"}]},"maintainers":[{"name":"rolivieri","email":"r_olivieri@yahoo.com"},{"name":"dannymejia","email":"danny.mejia@me.com"}],"_npmUser":{"name":"dannymejia","email":"danny.mejia@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ibm-certificate-manager-wallet_0.0.1_1560372444837_0.9036657639481067"},"_hasShrinkwrap":false},"0.0.2":{"name":"@blockchainlabs/ibm-certificate-manager-wallet","version":"0.0.2","description":"A Hyperledger Fabric Wallet for the IBM Cloud Certificate Manager Service.","author":{"name":"BlockchainLabs"},"main":"index.js","engines":{"node":">=8","npm":">=5"},"scripts":{"lint":"eslint .","lintfix":"eslint --fix .","test":"nyc mocha --recursive  -t 10000"},"repository":{"type":"git","url":"github.ibm.com/BlockchainLabs/certificate-manager-wallet.git"},"license":"Apache-2.0","types":"./types/index.d.ts","dependencies":{"@ibm-functions/iam-token-manager":"1.0.3","fabric-network":"1.4.1","fabric-client":"1.4.1","log4js":"0.6.38","request-promise":"4.2.4"},"devDependencies":{"bluebird":"3.5.4","chai":"^4.1.2","chai-as-promised":"^7.1.1","eol":"^0.9.1","eslint":"^4.19.1","eslint-config-airbnb":"^17.0.0","eslint-config-airbnb-base":"^13.0.0","eslint-plugin-import":"^2.13.0","mocha":"^5.2.0","nyc":"^12.0.2","rewire":"^4.0.1","sinon":"^5.0.7"},"nyc":{"exclude":["index.js","coverage/**","test/**"],"reporter":["lcov","json","text","text-summary","cobertura"],"cache":true,"all":true,"check-coverage":true,"statements":100,"branches":100,"functions":100,"lines":100},"gitHead":"3b07c74a95f50bb94409552c2baa67dcba39b1db","_id":"@blockchainlabs/ibm-certificate-manager-wallet@0.0.2","_nodeVersion":"8.11.4","_npmVersion":"6.9.0","dist":{"integrity":"sha512-vStp55gD2GSXHqz/gtOtvIHHDTQFc2UOFPqGbUP5ONPlhffDWFJaLDbIuxSLtWHfHUkCWc8lNafNtCALHU2T/Q==","shasum":"7bdd8be13efed4ef1058a676453b8cef5391eac4","tarball":"https://registry.npmjs.org/@blockchainlabs/ibm-certificate-manager-wallet/-/ibm-certificate-manager-wallet-0.0.2.tgz","fileCount":11,"unpackedSize":37904,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAWtECRA9TVsSAnZWagAA5X0P/17lqTu6Nm8UqdMup23Z\n1AeMvkLw8CKPK2N62/R6Jz4wLY/X1Fg4jglDig8DZjji7w8JLZJus0Uu7fWn\nN2VnfYbXQwWDg2rmyrKjkHd17p4Dn7qsgL6A/u34LjfprTVBIuII8a/z3fU9\nN7KDxYjPrj8IYA6pKE9oqqDPCQYMz35fBX6Y/+ksjHAzdqo0U3kuHYHa7G77\nQzuXDRcHE0gz0GJ1PD99am1WkQRkDx/VxCkbPKwrI2Rsz0gnJZROzLlOCodH\nIQvMOZ0SovWgLDW/KB+NNNb54MWQwtH544klPO0IM2kE53APJHsQnGQ/9eJx\nTCbCCfV0WmMavjSyRBVRf6pbnRIhF7NyELNPddSf5TT2ffcxwvYXM9/HWKQQ\nMrS8LKwJggU82Ob0JSMzXffLcViGx1DNzjFtPqFt7TtyTI4kkiq+eiBf1/Zi\nV6MoUuZ+izKSEgupKy5wAdMtsyNiHtLHfJyqDI+orpsCrOVQdxcRsz4qb5NC\nwXZVaCeLJh/AYDWR3wzWb8AmCfsFmo3JOOss3ognMhqXMfVt18jiE44QuGBa\nnZt8JDaNCrnIR94UPOzKgkgxERaZcPe60AfyvEOdtKaXnNqzQ2p0BRjyLcfK\nL87ejx4BXqHaCiQxqeyfR5fbSjFFl7aKdZGPWigFISumuV10AZ37ZPO1Y3CT\nHymV\r\n=Da+D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAzT0StM1gclwitPPFdPT/+vNY86Dk1te43gXMJr+ouUAiEA9kISAwXkJ80zJfrHEJV1elZeihLH0tiYOap7WyFSCt0="}]},"maintainers":[{"name":"dannymejia","email":"danny.mejia@me.com"},{"name":"rolivieri","email":"r_olivieri@yahoo.com"}],"_npmUser":{"name":"dannymejia","email":"danny.mejia@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ibm-certificate-manager-wallet_0.0.2_1560374083559_0.11906741813849475"},"_hasShrinkwrap":false},"0.0.3":{"name":"@blockchainlabs/ibm-certificate-manager-wallet","version":"0.0.3","description":"A fabric-network wallet that integrates with IBM Certificate Manager","author":{"name":"IBM Blockchain Labs"},"main":"index.js","engines":{"node":">=8","npm":">=5"},"scripts":{"lint":"eslint .","lintfix":"eslint --fix .","test":"nyc mocha --recursive  -t 10000"},"repository":{"type":"git","url":"https://github.ibm.com/BlockchainLabs/certificate-manager-wallet.git"},"license":"Apache-2.0","types":"./types/index.d.ts","dependencies":{"@ibm-functions/iam-token-manager":"1.0.3","fabric-network":"1.4.1","fabric-client":"1.4.1","log4js":"0.6.38","request-promise":"4.2.4"},"devDependencies":{"bluebird":"3.5.4","chai":"^4.1.2","chai-as-promised":"^7.1.1","eol":"^0.9.1","eslint":"^4.19.1","eslint-config-airbnb":"^17.0.0","eslint-config-airbnb-base":"^13.0.0","eslint-plugin-import":"^2.13.0","mocha":"^5.2.0","nyc":"^12.0.2","rewire":"^4.0.1","sinon":"^5.0.7"},"nyc":{"exclude":["index.js","coverage/**","test/**"],"reporter":["lcov","json","text","text-summary","cobertura"],"cache":true,"all":true,"check-coverage":true,"statements":100,"branches":100,"functions":100,"lines":100},"gitHead":"37afd8e8fb56bed624af9500c417c22900578bfd","_id":"@blockchainlabs/ibm-certificate-manager-wallet@0.0.3","_nodeVersion":"8.11.4","_npmVersion":"6.9.0","dist":{"integrity":"sha512-pNipW65sgdQiAqDlS2HdAteoOpr4ziOPeFU5cDYsG1RW07G5ZbmvwFE2LlCXNw/baHDnFB+deR/eI2soCqqTHQ==","shasum":"ead94ea621b73d9b6b0fc5999c53e0f7a15b183d","tarball":"https://registry.npmjs.org/@blockchainlabs/ibm-certificate-manager-wallet/-/ibm-certificate-manager-wallet-0.0.3.tgz","fileCount":12,"unpackedSize":52736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAXQSCRA9TVsSAnZWagAAAgwP/iuLGLON3Nf0f6yEhPGQ\nRZsXIjxLCYEoYF8nHV6Fry9oDfBvMl9W4LYvkbpFk+sYAtT93mTYkDl8S3Gq\nEX6Fj/xCLYNxftgpjBE+4EO+GNlK4XDJcqMPNjS+u6dMchQf/yRa7wKHLdyF\n9z6x0RENncHigTKvkyu86j1YP1Pk7C3suSdJdk9MccOh49FOM+x8ayRGx9ke\nP1g5jOz+AMcDsc/y9WZTx7z8e0OSImN0uOszua31m1WYL69Mzn6GkH9RbQCj\npuVUDqUghwVyHcUk+HypCCIxiaPRuB6kf7g2FkwuKVIP+icYYzOp35s/mQsG\nx4yA8nVBV+dCj/fkle0eEdpVGOR2YVDTjbQIUzRBa/q29+QUtFTK64XewynL\nzMVpDi8swnUuHfXN5Y8iznV7RSNeY/GaOpVDyuqpyR/xx1Lf2uAIZpBylLYM\nZbUTULle/mf9fU43YSd6nsRVgH47CD7dBps3SfyL+9iEWejSJrnqBUaFur2l\nF45bWpA/o46S4gZgnx4ov7cqN5ZWHfDFan2EmAytSS74gll6xLdEqSj8DarO\nzi2jMboPPMsW8awbVYdVEPEZU+n0psji9SC97nxNpLizvlvuvPvyy+Ri7Vy7\n0t1jVocVYjBAmeR3FG1WXbwM+cxTpEVljqijs7kaexpVJuLmNB1+viLQE0WV\nFlzC\r\n=eyWe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAHyiYl8B066NNw6ZnITtco0ajJO2oFeoYRc49A6E1dRAiBQYspsoAdz4gHQLDD3oNaFMB9fDUzhGCkS05kiE1opuQ=="}]},"maintainers":[{"name":"dannymejia","email":"danny.mejia@me.com"},{"name":"rolivieri","email":"r_olivieri@yahoo.com"}],"_npmUser":{"name":"dannymejia","email":"danny.mejia@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ibm-certificate-manager-wallet_0.0.3_1560376337734_0.030007811758990144"},"_hasShrinkwrap":false},"0.0.4":{"name":"@blockchainlabs/ibm-certificate-manager-wallet","version":"0.0.4","description":"A fabric-network wallet that integrates with IBM Certificate Manager","author":{"name":"IBM Blockchain Labs"},"main":"index.js","engines":{"node":">=8","npm":">=5"},"scripts":{"lint":"eslint .","lintfix":"eslint --fix .","test":"nyc mocha --recursive  -t 10000"},"repository":{"type":"git","url":"https://github.ibm.com/BlockchainLabs/certificate-manager-wallet.git"},"license":"Apache-2.0","types":"./types/index.d.ts","dependencies":{"@ibm-functions/iam-token-manager":"1.0.3","fabric-client":"1.4.1","fabric-network":"1.4.1","log4js":"6.1.2","request-promise":"4.2.4"},"devDependencies":{"bluebird":"3.5.4","chai":"^4.1.2","chai-as-promised":"^7.1.1","eol":"^0.9.1","eslint":"^4.19.1","eslint-config-airbnb":"^17.0.0","eslint-config-airbnb-base":"^13.0.0","eslint-plugin-import":"^2.13.0","mocha":"^5.2.0","nyc":"^12.0.2","rewire":"^4.0.1","sinon":"^5.0.7"},"nyc":{"exclude":["index.js","coverage/**","test/**"],"reporter":["lcov","json","text","text-summary","cobertura"],"cache":true,"all":true,"check-coverage":true,"statements":100,"branches":100,"functions":100,"lines":100},"gitHead":"04a16653551e20bd8316ec764765484aa06c76d1","_id":"@blockchainlabs/ibm-certificate-manager-wallet@0.0.4","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-dY4x0rORQgf6YGb6XtUFHr/jKG5oHXNcsJv5Vj8Ko7SAs0+IqT+4vgwJGKy0codWu4MP3bIJY+pmPfGeBu+ksg==","shasum":"ed6b8c653cd1d02c560f7d3e5e21a98a60672684","tarball":"https://registry.npmjs.org/@blockchainlabs/ibm-certificate-manager-wallet/-/ibm-certificate-manager-wallet-0.0.4.tgz","fileCount":12,"unpackedSize":52755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecnKfCRA9TVsSAnZWagAArDsP/iLMiaNhiFGfJOEnIRkK\nzdCtammq1r6ZkruQL0FHeVAu28wt0X0ZtSCP/HyTSBLof+9jj+Xaq4EbPR7x\nJsUy7TpSXBM7BuaRfWezHT6rhqddLGbfSfOfJJ2u5sBJyHBtTQM0Qe1XCc6q\n//lkzJeufGB7QEkjWDK/5ja7X8ur9KkGPCPBKi0w6lD0L3GTqXEbfneTJ4jn\nHEr3qvULnRs9sT+65deEVLyO0jTzMnaWjn9hnhBpWpnEpV4zLgWfQbr7TydD\nCDgyju9R5XHYri5KinoJMOzOZikLN9UnJdR2f1PtgN9ANro39t7lqHegzWvv\nE4SAu1iczCrv0xStYrM3EJ3TPkrXGk61f940ooPPfFddGpvygc7B8BULodZ/\nCQ+3aEEY/vJ77BUSGco0vAxkYYX9h+hC0ZSI56J+9sL0GY9fZa6mIT3P05tC\nUrAfCdQy9y+lZguQNm1RaFFidC3fdlwW8MnpwgSZBsH8zqO/14qJ6lK0Dq5D\n7SuD7FrcU3wYmuGca5zhL+RtNT6LvMHQdgKCo3INgV55qEXylfvlr2nFCPmQ\nq5aYBmeEMlLheYj9wxIYs0wB7kQmh9HCTaxfXDwh9rK5KHXf8GDT8b/5hJqy\nNf6icdvkV1hYr3qXmuZ2r2gd4hhgFcYNVKijuYgCOWMRgr5zbONoXuRtwCvl\nioR7\r\n=DlVe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/QC4l+kExVfxeZ7tl/QYMnQEtEv+PKgCTamwF20hYSgIhAO9HwrGfytgCBMHySkUSSyyQGwj+ttHUoLmQH/AJ8JJK"}]},"maintainers":[{"email":"danny.mejia@me.com","name":"dannymejia"},{"email":"edna592@gmail.com","name":"edna592"},{"email":"smurgai@gmail.com","name":"robmurgai"},{"email":"r_olivieri@yahoo.com","name":"rolivieri"},{"email":"tom.appleyard@uk.ibm.com","name":"tomappleyard"}],"_npmUser":{"name":"edna592","email":"edna592@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ibm-certificate-manager-wallet_0.0.4_1584558750760_0.26851386508882036"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-12T20:47:24.632Z","0.0.1":"2019-06-12T20:47:25.094Z","modified":"2022-04-04T19:36:59.935Z","0.0.2":"2019-06-12T21:14:43.706Z","0.0.3":"2019-06-12T21:52:18.082Z","0.0.4":"2020-03-18T19:12:30.844Z"},"maintainers":[{"email":"danny.mejia@me.com","name":"dannymejia"},{"email":"edna592@gmail.com","name":"edna592"},{"email":"smurgai@gmail.com","name":"robmurgai"},{"email":"r_olivieri@yahoo.com","name":"rolivieri"},{"email":"tom.appleyard@uk.ibm.com","name":"tomappleyard"}],"description":"A fabric-network wallet that integrates with IBM Certificate Manager","repository":{"type":"git","url":"https://github.ibm.com/BlockchainLabs/certificate-manager-wallet.git"},"author":{"name":"IBM Blockchain Labs"},"license":"Apache-2.0","readme":"[![Build Status](https://travis.ibm.com/BlockchainLabs/certificate-manager-wallet.svg?token=zeQdj5C26x9V6yp2mXei&branch=master)](https://travis.ibm.com/BlockchainLabs/certificate-manager-wallet)\n\n# certificate-manager-wallet\n\n## IBM Certificate Manager\nThe [IBM Certificate Manager](https://console.bluemix.net/docs/services/certificate-manager/index.html#gettingstarted) service allows developers and/or administrators upload and securely store SSL/TLS certificates and associated private keys. Applications can then securely retrieve these credentials via its [API](https://console.bluemix.net/apidocs/certificate-manager).\n\nBefore storing public certificates and private keys, the IBM Certificate Manager encrypts these artifacts using a symmetric key. The IBM Certificate Manager service leverages the [Key Protect](https://console.bluemix.net/docs/services/key-protect/index.html#getting-started-with-key-protect) service for managing symmetric keys. It is also worth mentioning that Key Protect uses HSM for securely storing and protecting symmetric keys.\n\n## IBM Certificate Manager Wallet\nThis repository contains a Hyperledger Fabric wallet for the IBM Certificate Manager service. Please note that the main purpose of this repository is to support development and delivery engagements led by the **Blockchain Labs** organization. Other teams and organizations are more than welcome to leverage this asset *as-is*. Ideally, we would like to open source this reusable asset to the public community but our organization does not have the bandwidth to support the responsibilities and expected tasks that are implied when open sourcing a library.\n\nThis wallet allows Node.js applications to store and retrieve public certificates and private keys generated for Fabric identities. It conforms to the [fabric-network Wallet interface](https://fabric-sdk-node.github.io/release-1.4/module-fabric-network.Wallet.html).\n\nThe following are the main sections in this README file:\n\n1. [Configuring IBM Certificate Manager as persistent store for Fabric credentials](https://github.ibm.com/BlockchainLabs/certificate-manager-wallet#configuring-ibm-certificate-manager-as-persistent-store-for-fabric-credentials)\n1. [Configuring your Node.js application to use the IBM Certificate Manager wallet](https://github.ibm.com/BlockchainLabs/certificate-manager-wallet#configuring-your-nodejs-application-to-use-the-ibm-certificate-manager-wallet)\n1. [Usage](https://github.ibm.com/BlockchainLabs/certificate-manager-wallet#usage)\n\n## Configuring IBM Certificate Manager as persistent store for Fabric credentials\n1. Create an IBM Certificate Manager service instance on the IBM Cloud\n  \n    Log on to the IBM Cloud and create an IBM Certificate Manager service instance under the corresponding organization and environment (e.g. development, staging, etc.). For more information on creating an instance of the IBM Certificate Manager service, please see [Getting started with IBM Certificate Manager](https://cloud.ibm.com/docs/services/certificate-manager?topic=certificate-manager-getting-started#gettingstarted). \n    \n    An instance ID is associated with each IBM Certificate Manager instance. To retrieve the instance ID value for your service, select the corresponding IBM Certificate Manager service. Then click on *Settings* -> *Instance Info* tab, and copy the *Service Instance CRN* value.\n\n2. Create a Service ID and API key to work with your IBM Certificate Manager instance\n\n    To authenticate with the IBM Certificate Manager service from an application, you must include an IBM Cloud IAM access token and the IBM Certificate Manager instance ID in every HTTP request.\n    \n    To create Service ID and API key:\n      \n    1. Log into IBM Cloud, go to *Manage* -> *Access (IAM)*, and select *Service IDs*.\n    2. Click the *Create* button on the right.\n    3. Give your service ID a name and description and click *Create*.\n    4. Go to the *API keys* tab of your Service ID and click *Create*.\n    5. Give your API key a name and description and click *Create*.\n    6. **IMPORTANT: Copy or download the API key. This will be the only time you can see it.**\n\n   To assign an access policy to the API key:\n\n    7. Go to the *Access policies* tab and click *Assign Access*.\n    8. Select *Assign access to resources*.\n    9. Select *Certificate Manager* from the drop down list.\n    10. Select the corresponding IBM Certificate Manager instance and assign the following access roles: `Manager`,`Writer` and `Reader`. For more information on assigning access policies, please refer to [Managing service access roles](https://console.bluemix.net/docs/services/certificate-manager/access-management.html#managing-service-access-roles).\n\n## Configuring your Node.js application to use the IBM Certificate Manager  Wallet\n1. From the root folder of your Node.js application, execute the following command:\n    ```\n    npm i @blockchainlabs/ibm-certificate-manager-wallet --save\n    ```\n\n## Usage\nPlease see the snippet of code below for an example on how to use this library in your Node.js application:\n\n```\nconst CertificateManagerWallet = require('@blockchainlabs/ibm-certificate-manager-wallet');\nconst { X509WalletMixin } = require('fabric-network');\n\nconst cmWallet = new CertificateManagerWallet({\n  url: 'https://{region}.certificate-manager.cloud.ibm.com',\n  instanceId: '<instance id from step 1>',\n  apiKey: '<api key from step 2.6>',\n});\n\n// check if identity exists in wallet\nconst exists = await cmWallet.exists(id);\n\n// import an identity\nawait cmWallet.import(id, X509WalletMixin.createIdentity(org, cert, key));\n\n// list identities in wallet\nconst listOfIds = await cmWallet.list();\n\n// delete an identity\nawait cmWallet.delete(id);\n\n// export an identity\nconst identity = await cmWallet.export(id);\n```\n\nTo determine the **region** (e.g. `us-south`, `eu-gb`, etc.) for your IBM Certificate Manager instance, please see the [IBM Cloud Certificate Manager API](https://cloud.ibm.com/apidocs/certificate-manager) documentation.\n","readmeFilename":"README.md"}