Prepare User Identity for Isabella

Q

How to Prepare User Identity for Isabella?

✍: FYIcenter.com

A

If Isabella wants to run any application to use the chaincode running the PaperNet, you to prepare a user identity for her.

An identity of an application user consists of a private key and a public key certificate issue by the CA node of the PaperNet.

Normally, Isabella needs ask the PaperNet admin to create an identity with two options:

1. PaperNet admin uses admin tools to:

  • Create a pair of private key and public key for Isabella.
  • Sign the pubic key into a certificate using the CA's private key.
  • Create a user in CA by loading the private key and the certificate to the CA node of PaperNet.

2. PaperNet admin uses the CA service SDK to:

  • Register Isabella as a user of PaperNet.
  • Enroll the user to obtain her private key and certificate.

But this tutorial, the PaperNet admin chooses a lazy option. He decided to give Isabella the private key and password of the user identity of "User1@org1.example.com", which is pre-defined in the basic-network sample.

(magnetocorp admin)$ cd ~/hyperledger-binaries/fabric-samples/basic-network
(magnetocorp admin)$ cd crypto-config/peerOrganizations/org1.example.com/users

(magnetocorp admin)$ ls -l User1@org1.example.com/msp
drwxrwxr-x 2 fyicenter 4096 Apr  1 23:01 admincerts
drwxrwxr-x 2 fyicenter 4096 Apr  1 23:01 cacerts
drwxrwxr-x 2 fyicenter 4096 Apr  1 23:01 keystore
drwxrwxr-x 2 fyicenter 4096 Apr  1 23:01 signcerts
drwxrwxr-x 2 fyicenter 4096 Apr  1 23:01 tlscacerts

Hope that the certificate is not expired by the time you are running this tutorial.

 

Create Identity Wallet for Isabella

Install Node.js Application Dependencies

commercial-paper Sample Network

⇑⇑ Hyperledger Tutorials

2019-11-21, 216👍, 0💬