concept CA server in category hyperledger

appears as: CA server, CA servers, CA server
Programming Hyperledger Fabric: Creating Permissioned Blockchains

This is an excerpt from Manning's book Programming Hyperledger Fabric: Creating Permissioned Blockchains.

X.509 certificates can also be generated using the openssl or certtool command line tools that come with Linux or Mac. These tools are useful while prototyping and to generate the self-signed certificate that can be used to bootstrap a CA server. In production one usually needs some database to manage issued credentials and an endpoint that can be accessed from remote machine, hence the need to run a CA server. The Fabric CA is further made up of a server component known as fabric-ca-server which issues certificates and a client component fabric-ca-client that can be used to make requests to the server from a remote machine through a command line. There is also a Node client that is also named fabric-ca-client which can be used by a Node application to communicate with the server.61 The server exposes just a handful of APIs:

Provisioning CA server

To provision CA server one can use the hyperledger/fabric-ca:1.4 Docker image or the fabric-ca-server binary that ships with Fabric. You can also develop your own CA and not use the one provided by Fabric. Irrespective of whether you are using Fabric CA or not, before you can provision a CA server, you need to provision the database that server will use - unless you are using a local file based db like sqlite3 for the CA db. In addition, before the CA server can be provisioned, you need to generate a self-signed certificate to bootstrap the CA. This certificate provides the identity of the server itself. How do we get this certificate? This is a “chicken-and-egg” problem since we need a CA server to get a certificate in the first place. When using Fabric CA, there are two ways to solve this problem: one is by using the fabric-ca-server init command and another is by using openssl or certtool CLI to generate a self-signed certificate. Once we have the CA’s cert in hand, the server can be started with fabric-ca-server start command. Central to provisioning of Fabric CA is the fabric-ca-server-config.yaml file which contains important configuration information such as connection string to the CA db and path to the CA server’s own X.509 certificate and private key. 80