Using fabric ca, the organization registered and enrolled client user. The generated certificates are kept in the directory. Unfortunately if the generated certificates are deleted . How to recover those client user certificate?

Can anyone suggest?

1

There are 1 best solutions below

0
On

1. Admin client

In the case of admin client id and pw, they are set when uploaded to fabric-ca. In this case, you can make a new request to fabric-ca through the enroll command.


2. User client

In this situation, it cannot be solved through the functions provided by the fabric, but must be solved through some kind of trick.

  1. Give up and create a new user ID. - Existing identities cannot be recovered.

  2. Fabric-ca is initialized and newly registered. -

  3. How to clean the existing registered user client of the database and register a same one - The user client id is the same, but the key and cert are newly created.

  4. This is a method of artificially modifying fabric-ca's secret validation binary code, so that it unconditionally operates as true. after modifying the code, build binary or docker to operate reenroll normally, issue a new cert and key. and then return to the original binary.

  • Of course, methods 3 and 4 are the trick, and it's right that it doesn't work.
  • When a key is lost in Fabric, there is no way to reissue it.