Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This is the Developer's Guide for Fabric CA, which is a Certificate Authority for Hyperledger Fabric.
Fabric CA can issue enrollment certificates and TLS certificates for Hyperledger Fabric deployments.
See the Fabric Getting Started Guide for information on how to install and use Fabric CA with Hyperledger Fabric sample networks.
See the Fabric CA User's Guide, Operations Guide, and Deployment Guide for detailed information on how to use and deploy Fabric CA.
The remainder of this guide is intended for developers contributing to Fabric CA.
Prerequisites
Go 1.25 installation or later
docker version 17.03 or later
docker-compose version 1.11 or later
Contribution guidelines
You are welcome to contribute to Fabric CA!
The following are guidelines to follow when contributing:
See the general information about contributing to fabric.
To run the unit tests manually:
# cd $GOPATH/src/github.com/hyperledger/fabric-ca
# make unit-tests
The test coverage for each package must be 75% or greater. If this fails due to insufficient test coverage, then you can run gencov to get a coverage report to see what code is not being tested. Once you have added additional test cases, you can run go test -cover in the appropriate package to see the current coverage level.
WARNING: Running the unit-tests may fail due to too many open file descriptors.
Depending on where the failure occurs, the error message may not be obvious and may only say something similar to "unable to open database file".
Depending on the settings on your host, you may need to increase the maximum number of open file descriptors.
For example, the OSX default per-process maximum number of open file descriptors is 256.
You may issue the following command to display your current setting:
# ulimit -n
256
And the following command will increase this setting to 65536:
# ulimit -n 65536
Please note that this change is only temporary. To make it permanent, you will need to consult the documentation for your host operating system.
Package overview
cmd/fabric-ca-server contains the main for the fabric-ca-server command.
cmd/fabric-ca-client contains the main for the fabric-ca-client command.
lib contains most of the code.
a) server.go contains the main Server object, which is configured by serverconfig.go.
b) client.go contains the main Client object, which is configured by clientconfig.go.
util/csp.go contains the Crypto Service Provider implementation.
lib/dbutil contains database utility functions.
lib/ldap contains LDAP client code.
lib/spi contains Service Provider Interface code for the user registry.
lib/tls contains TLS related code for server and client.
util contains various utility functions.
Additional info
FVT
See FVT tests for information on functional verification test cases.
Updating the cfssl vendored package
Following are the steps to update cfssl package using version 1.0.8 of govendor tool.
Remove cfssl from vendor folder
cd $GOPATH/src/github.com/hyperledger/fabric-ca/vendor
govendor remove github.com/cloudflare/cfssl/...
rm -rf github.com/cloudflare/cfssl/
Clone cfssl repo
cd $GOPATH/src/github.com/
mkdir cloudflare
cd cloudflare
git clone https://github.com/cloudflare/cfssl.git
Add cfssl from $GOPATH to the vendor folder
cd $GOPATH/src/github.com/hyperledger/fabric-ca/vendor
govendor add github.com/cloudflare/cfssl/^
You can optionally specify revision or tag to add a particular revision of code to the vendor folder
Remove sqlx package from cfssl vendor folder. This is because certsql.NewAccessor (called by fabric-ca) requires sqlx.db object to be passed from the same package. If we were to have sqlx package both in fabric-ca and cfssl vendor folder, go compiler will throw an error
Remove the packages that are added to the fabric-ca vendor folder that are not needed by fabric-ca
License
Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/hyperledger/fabric-ca là nguồn chính thức.
hyperledger/fabric-ca có phải mã nguồn mở không?
Có — hyperledger/fabric-ca phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/hyperledger/fabric-ca.
hyperledger/fabric-ca có trang demo không?
Dự án có trang chủ ở https://wiki.hyperledger.org/display/fabric. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
hyperledger/fabric-ca dùng license gì?
hyperledger/fabric-ca phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
hyperledger/fabric-ca là gì?
hyperledger/fabric-ca (hyperledger/fabric-ca) là dự án Go TopGit theo dõi. Tính tới lần đồng bộ gần nhất, repo có 455 sao.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về fabric-ca?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về fabric-ca.